Does anyone understand what does Warning C40 means?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
I got Warning C40:
This error indicates that a non-pointer value type has been converted to a memory-space pointer.
For example, if an int is converted to a far or huge pointer, then the memory space selector part of the pointer will be zero (this is probably not what is expected).
(http://www.keil.com/support/man/docs/ca/ca_c40.htm)

Can anyone explain what exactly does it mean, in which cases should I take care of it?
Actually I don't get the phrase "the memory space selector part of the pointer will be zero".
0 Likes
0 Replies