Hello,
On an ARM7, why isn't the value of 'my_char' truncated to the range of a signed char?
char my_char = 240;
I see that 'my_char' is stored in a register - fine, but why isn't that register ANDed with 127? The range of a char type on an ARM7 machine is -128..+127.
Thanks
With a range of -128 to +127 you need 8 bits. So the ANDing (if it were required) would be with 0xFF.
You're looking at one of those 'implementation defined' situations. For what you're asking, I can't remember seeing any other action.