This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/36402] -0x80000000 (INT_MIN) erroneously treated as unsigned



------- Comment #4 from joseph at codesourcery dot com  2008-06-01 12:22 -------
Subject: Re:  -0x80000000 (INT_MIN) erroneously treated as
 unsigned

On Sun, 1 Jun 2008, gcczilla at achurch dot org wrote:

> Fair enough, but GCC's documentation explicitly says (gcc.info section 4.5):

It also explicitly explains, in the section "Incompatibilities", that 
-2147483648 is positive, and why.  (In C99 mode, 2147483648 becomes of 
type long long, but 0x80000000 is still unsigned.)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36402


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]