This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36402] -0x80000000 (INT_MIN) erroneously treated as unsigned
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2008 12:22:11 -0000
- Subject: [Bug c/36402] -0x80000000 (INT_MIN) erroneously treated as unsigned
- References: <bug-36402-6266@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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