News for hackers. Stuff that matters.
Re:GCC should warn about 2^16 and 2^32 and 2^64 by NikkiA on Monday June 17, 2019 @03:11PM (#20206342)
No, we mean the power operator, 2 to the power of 16 would be '0' in a short int, since the value overflows...

But since philosophically a signed int has '1's in every bit from the MSB to infinity towards the left, it should thus be -0 not 0.

Re:GCC should warn about 2^16 and 2^32 and 2^64 by leereeves on Monday June 17, 2019 @07:37PM (#20208366)
In two's complement (the usual binary representation of signed ints), -0 is the same as 0.