F
fizzleBomb
After running this:
unsigned long long x = (unsigned long long)-1;
int y = 64;
x = x >> y;
the value of x is 0xffffffffffffffff though I'd have expected 0. Strangely,
shifting by 63 produces 1 as expected. Any idea what's up with that?
I'm using gcc 4.0.2 if that's relevant.
unsigned long long x = (unsigned long long)-1;
int y = 64;
x = x >> y;
the value of x is 0xffffffffffffffff though I'd have expected 0. Strangely,
shifting by 63 produces 1 as expected. Any idea what's up with that?
I'm using gcc 4.0.2 if that's relevant.