[Bug c/52661] negative maxint for long long gives warning
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 22 06:07:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52661
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-22 05:58:48 UTC ---
-9223372036854775808LL is two tokens - and 9223372036854775808LL which means
the warning is correct. If you want -9223372036854775808LL without a warning
use:
-9223372036854775801LL -1 or better yet just use LONG_LONG_MIN .
More information about the Gcc-bugs
mailing list