[Bug c/53369] Integral promotion with ~ operator - Different behavior for signed and unsigned char.
rahulnitk2004 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed May 16 09:12:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53369
--- Comment #4 from Rahul Ramachandran <rahulnitk2004 at gmail dot com> 2012-05-16 09:09:07 UTC ---
So basically char value -128 is represented in integer as
11111111-11111111-11111111-10000000 and +128 as 10000000. So taking the
compliment will result in 0X7F and 0XFFFFFF7F.
Thanks for the explanation.
Rahul
More information about the Gcc-bugs
mailing list