We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab1fcb3 commit 376638eCopy full SHA for 376638e
1 file changed
python/ql/src/Expressions/TruncatedDivision.ql
@@ -26,7 +26,7 @@ where
26
and bin.getRight().pointsTo(rval, right)
27
and rval.getClass() = ClassValue::int_()
28
// Ignore instances where integer division leaves no remainder
29
- and not lval.(NumericValue).intValue() % rval.(NumericValue).intValue() = 0
+ and not lval.(NumericValue).getIntValue() % rval.(NumericValue).getIntValue() = 0
30
and not bin.getNode().getEnclosingModule().hasFromFuture("division")
31
// Filter out results wrapped in `int(...)`
32
and not exists(CallNode c |
0 commit comments