blob: 506960c3cc7673c44d2d295f79d259b57f02e453 [file] [log] [blame]
Jean-Baptiste Querub56ea2a2013-01-08 11:11:20 -08001<html>
2<body>
3Reports any checks for oddness of the form:
4<code><pre>x % 2 == 1</pre></code>
5Such checks will fail for negative odd values, which is probably not the behaviour intended. Consider using:
6<code><pre>x % 2 != 0</pre></code> or: <code><pre>(x & 1) == 1</pre></code> instead.
7<!-- tooltip end -->
8<p>
Tor Norbyec1ace1f2013-07-08 11:26:24 -07009
Jean-Baptiste Querub56ea2a2013-01-08 11:11:20 -080010</body>
11</html>