Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b10ed97

Browse files
jketemaMathiasVP
andauthored
Update cpp/ql/src/Likely Bugs/Memory Management/AllocaInLoop.ql
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent 18dea55 commit b10ed97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/ql/src/Likely Bugs/Memory Management/AllocaInLoop.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class LoopWithAlloca extends Stmt {
221221
private int getAControllingVarInitialValue(Variable var, DataFlow::Node source) {
222222
source = this.getAPrecedingDef(var) and
223223
(
224-
result = getExpr(source).(Expr).getValue().toInt()
224+
result = getExpr(source).getValue().toInt()
225225
or
226226
result = getExpr(source).(Assignment).getRValue().getValue().toInt()
227227
)

0 commit comments

Comments
 (0)