middle-end/6694: Warning that largest negative int -2147483648 in comparison is unsigned

sirl@gcc.gnu.org sirl@gcc.gnu.org
Fri May 17 07:13:00 GMT 2002


Synopsis: Warning that largest negative int -2147483648 in comparison is unsigned

State-Changed-From-To: open->closed
State-Changed-By: sirl
State-Changed-When: Fri May 17 07:13:28 2002
State-Changed-Why:
    Not a bug. There are no negative constants in C.
    The constant overflows 'int' (thus the warning) and then the negation is applied as an operation.
    

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6694



More information about the Gcc-bugs mailing list