News for hackers. Stuff that matters.
Re:Subtraction is not comparison by Scaevolus on Thursday December 25, 2014 @09:46PM (#8797831)
(int32_t)3975308642 == -319658654

Overflow makes intuitive arithmetic do unusual things.

Similarly, using a+b/2 for binary search midpoints is wrong. http://googleresearch.blogspot.com/2006/06/extra-extra-read-...

There are no comments on this comment yet.