apply suggestion from review

This commit is contained in:
erik-krogh
2022-08-23 15:41:37 +02:00
parent 1a7d3ee831
commit a50234adb0
5 changed files with 10 additions and 10 deletions

View File

@@ -53,4 +53,4 @@ where
not e instanceof EqualityTest and
e.getRightOperand().getIntValue() = 0 and
not acceptableSignCheck(b)
select e, "Potential unsafe sign check of a bitwise operation."
select e, "Potentially unsafe sign check of a bitwise operation."

View File

@@ -1,3 +1,3 @@
| tst.js:2:9:2:24 | (x & (1<<n)) > 0 | Potential unsafe sign check of a bitwise operation. |
| tst.js:14:13:14:25 | (x >>> 0) > 0 | Potential unsafe sign check of a bitwise operation. |
| tst.js:23:1:23:21 | (x & 0x ... 00) > 0 | Potential unsafe sign check of a bitwise operation. |
| tst.js:2:9:2:24 | (x & (1<<n)) > 0 | Potentially unsafe sign check of a bitwise operation. |
| tst.js:14:13:14:25 | (x >>> 0) > 0 | Potentially unsafe sign check of a bitwise operation. |
| tst.js:23:1:23:21 | (x & 0x ... 00) > 0 | Potentially unsafe sign check of a bitwise operation. |