[Bug c/31007] wrong 64bit constant calculation
hidden_peak at mail dot ru
gcc-bugzilla@gcc.gnu.org
Thu Mar 1 15:11:00 GMT 2007
------- Comment #6 from hidden_peak at mail dot ru 2007-03-01 15:11 -------
> Shifting unsigned numbers doesn't replicate the sign bit.
unsigned ui3 = ~((1 << 31) >> 3);
printf( "%x\n", ui3 );
give me wrong result fffffff ?
--
hidden_peak at mail dot ru changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31007
More information about the Gcc-bugs
mailing list