Skip to content

Commit a181ec2

Browse files
Update astutils.cpp [skip ci]
1 parent da4e73b commit a181ec2

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
@@ -1700,7 +1700,7 @@ bool isSameExpression(bool macro, const Token *tok1, const Token *tok2, const Se
17001700
compare = true;
17011701
}
17021702
}
1703-
if (compare && astIsBoolLike(varTok1, settings) && astIsBoolLike(varTok2, settings))
1703+
if (compare && varTok1 != varTok2 && astIsBoolLike(varTok1, settings) && astIsBoolLike(varTok2, settings))
17041704
return isSameExpression(macro, varTok1, varTok2, settings, pure, followVar, errors);
17051705

17061706
}

0 commit comments

Comments
 (0)