Skip to content

Commit 2f38d36

Browse files
Gulshan Singhgsingh93
authored andcommitted
Fix typo in dependsOnChild
1 parent fb31570 commit 2f38d36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/rangeanalysis/extensions/ConstantShiftExprRange.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class ConstantRShiftExprRange extends SimpleRangeAnalysisExpr {
137137
}
138138

139139
override predicate dependsOnChild(Expr child) {
140-
child = getLeftOperand() or child = getLeftOperand()
140+
child = getLeftOperand() or child = getRightOperand()
141141
}
142142
}
143143

@@ -258,6 +258,6 @@ class ConstantLShiftExprRange extends SimpleRangeAnalysisExpr {
258258
}
259259

260260
override predicate dependsOnChild(Expr child) {
261-
child = getLeftOperand() or child = getLeftOperand()
261+
child = getLeftOperand() or child = getRightOperand()
262262
}
263263
}

0 commit comments

Comments
 (0)