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:
Actually, signed modulo can return negative numbers... See, for example, this StackOverflow question:
http://stackoverflow.com/questions/7594508/modulo-operator-w...