Skip to content

Commit 2c4eeea

Browse files
Update astutils.cpp
1 parent 35e76b5 commit 2c4eeea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/astutils.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,7 @@ bool isVariableChanged(const Token *tok, int indirect, const Settings &settings,
26422642
if (!tok->isMutableExpr())
26432643
return false;
26442644

2645-
if (isConstVarExpression(tok))
2645+
if (indirect == 0 && isConstVarExpression(tok))
26462646
return false;
26472647

26482648
const Token *tok2 = tok;

0 commit comments

Comments
 (0)