News for hackers. Stuff that matters.
Re:Issues with porting C++ code to a 64-bit platform by MichaelSalib on Monday April 01, 2013 @04:33PM (#5475728)
The differences between the representations matter. In 2s complement, -INT_MIN is not INT_MAX; in fact, -INT_MIN is undefined and a C compiler is justified in deleting all your code if you ever cause it to calculate -INT_MIN.

I tell you what: if you think modern architectures use an explicit sign bit to represent integers, how do you explain the fact that INT_MAX+1==-INT_MIN? If there's a sign bit, how could you possibly represent more negative integers than positive integers?

There are no comments on this comment yet.