News for hackers. Stuff that matters.
Re:John Carmack on Static Code Analysis by Figs on Wednesday September 19, 2012 @03:14PM (#4545041)
> I've seen simple cases where a function returned a signed integer value modulo x. Which of course means that this function can only return a value within 0..x-1.

Actually, signed modulo can return negative numbers... See, for example, this StackOverflow question:

http://stackoverflow.com/questions/7594508/modulo-operator-w...

Re:John Carmack on Static Code Analysis by santaragolabs on Wednesday September 19, 2012 @03:25PM (#4545101)
Ha, good catch. But in this case x was always positive.