http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53369
Bug #: 53369
Summary: Integral promotion with ~ operator - Different
behavior for signed and unsigned char.
Classification: Unclassified
Product: gcc
Version: 4.5.2
S
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53369
--- Comment #1 from Rahul Ramachandran
2012-05-16 00:03:58 UTC ---
Created attachment 27414
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27414
The assemply file
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53369
Rahul Ramachandran changed:
What|Removed |Added
Attachment #27414|0 |1
is obsolete|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53369
--- Comment #4 from Rahul Ramachandran
2012-05-16 09:09:07 UTC ---
So basically char value -128 is represented in integer as
---1000 and +128 as 1000. So taking the
compliment will result in 0X7F and 0XFF7F.
T