[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug c/36402] -0x80000000 (INT_MIN) erroneously treated as unsigned
From:       "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2008-05-31 19:50:01
Message-ID: 20080531195001.15254.qmail () sourceware ! org
[Download RAW message or body]



------- Comment #1 from ebotcazou at gcc dot gnu dot org  2008-05-31 19:50 -------
> GCC seems to treat the 32-bit integer constant -0x80000000 (INT_MIN) as an
> unsigned value, when it should be signed.

Incorrect.  -0x80000000 is not an integer constant, it's the negation of the
integer constant 0x80000000, which is unsigned (C99 6.4.4.1).


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic