Skip to content

Commit 376638e

Browse files
committed
Move query over to Rasmus's API for NumericValue
1 parent ab1fcb3 commit 376638e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/ql/src/Expressions/TruncatedDivision.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ where
2626
and bin.getRight().pointsTo(rval, right)
2727
and rval.getClass() = ClassValue::int_()
2828
// Ignore instances where integer division leaves no remainder
29-
and not lval.(NumericValue).intValue() % rval.(NumericValue).intValue() = 0
29+
and not lval.(NumericValue).getIntValue() % rval.(NumericValue).getIntValue() = 0
3030
and not bin.getNode().getEnclosingModule().hasFromFuture("division")
3131
// Filter out results wrapped in `int(...)`
3232
and not exists(CallNode c |

0 commit comments

Comments
 (0)