News for hackers. Stuff that matters.
Re:The Little C Function From Hell by rcfox on Tuesday June 19, 2012 @11:41AM (#4132401)
Unsigned integer overflow has defined behaviour in C, while signed overflow doesn't. Is it really better to protect people from a simple logical error by exposing them to possible undefined behaviour?

With signed integers, you'll run into the same problem with comparing to n+1 at INT_MAX or n-1 at INT_MIN.

Re:The Little C Function From Hell by barrkel on Tuesday June 19, 2012 @11:44AM (#4132416)
0 is a really common value for an integer variable in programs. INT_MAX and INT_MIN are not.

It's just my experience. Don't get too wound up about it ;)