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

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Sun Jun 1 12:22:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list