Skip to content

Commit a36539e

Browse files
Update valueflow.cpp
1 parent ff0929a commit a36539e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3682,7 +3682,7 @@ static void valueFlowSymbolicOperators(const SymbolDatabase& symboldatabase, con
36823682
continue;
36833683
if (vartok->exprId() == 0)
36843684
continue;
3685-
if (Token::Match(tok, "<<|>>|/") && !astIsLHS(vartok))
3685+
if (Token::Match(tok, "<<|>>|/|-") && !astIsLHS(vartok))
36863686
continue;
36873687
if (Token::Match(tok, "<<|>>|^|+|-|%or%") && constant->intvalue != 0)
36883688
continue;

0 commit comments

Comments
 (0)