Skip to content

Commit 0492781

Browse files
Update astutils.cpp
1 parent 848a003 commit 0492781

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
@@ -1617,7 +1617,7 @@ bool isSameExpression(bool macro, const Token *tok1, const Token *tok2, const Se
16171617
const Token *followTok1 = tok1, *followTok2 = tok2;
16181618
while (Token::simpleMatch(followTok1, "::"))
16191619
followTok1 = followTok1->astOperand2() ? followTok1->astOperand2() : followTok1->astOperand1();
1620-
while (Token::simpleMatch(followTok2, "::") && followTok2->astOperand2())
1620+
while (Token::simpleMatch(followTok2, "::"))
16211621
followTok2 = followTok2->astOperand2() ? followTok2->astOperand2() : followTok2->astOperand1();
16221622
if (isSameConstantValue(macro, followTok1, followTok2))
16231623
return true;

0 commit comments

Comments
 (0)