We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d7ac88 commit 2c51f86Copy full SHA for 2c51f86
javascript/ql/src/semmle/javascript/RangeAnalysis.qll
@@ -497,9 +497,9 @@ module RangeAnalysis {
497
(x < 0 or x = 0 and sharpx = true) and
498
(y > 0 or y = 0 and sharpy = false) and
499
(
500
- x = 0
+ x <= 0 and x >= 0
501
or
502
- y = 0
+ y <= 0 and y >= 0
503
504
// If non-zero, check that the values are within a factor 16 of each other
505
x.abs().bitShiftRight(4) < y.abs() and
0 commit comments