Jean-Baptiste Queru | b56ea2a | 2013-01-08 11:11:20 -0800 | [diff] [blame] | 1 | <html> |
| 2 | <body> |
| 3 | Reports any checks for oddness of the form: |
| 4 | <code><pre>x % 2 == 1</pre></code> |
| 5 | Such 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 Norbye | c1ace1f | 2013-07-08 11:26:24 -0700 | [diff] [blame] | 9 | |
Jean-Baptiste Queru | b56ea2a | 2013-01-08 11:11:20 -0800 | [diff] [blame] | 10 | </body> |
| 11 | </html> |