[Bug c/31166] Integer hex constant does not follow promoting rules
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Mar 13 22:35:00 GMT 2007
------- Comment #4 from pinskia at gcc dot gnu dot org 2007-03-13 22:35 -------
unsigned is never promoted, it always stays unsigned.
So -0x80000000 == 0x80000000 :).
Try adding ULL (or UL) if you want an unsigned long long (unsigned long)
constant.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31166
More information about the Gcc-bugs
mailing list