News for hackers. Stuff that matters.
Re:Catching Integer Overflows in C by rcfox on Tuesday August 02, 2011 @10:45AM (#2837289)
Either way, you're going to have the incorrect number. When debugging, I'd rather have something that is very incorrect rather than having a mysterious off-by-one error.

Edit: The C99 standard acknowledges that abs(INT_MIN) isn't representable, so using abs(INT_MIN) is undefined.

There are no comments on this comment yet.