Skip to content

Commit

Permalink
Compare expr ids
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Nov 25, 2023
1 parent 50c3caa commit 8788eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/programmemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ namespace {
std::vector<const Token*> conditions2 = flattenConditionsSorted(tok);
if (conditions2.empty())
continue;
if (conditions1 == conditions2)
if (std::equal(conditions1.begin(), conditions1.end(), conditions2.begin(), conditions2.end(), &TokenExprIdCompare))
return value;
std::vector<const Token*> diffConditions1 = setDifference(conditions1, conditions2);
std::vector<const Token*> diffConditions2 = setDifference(conditions2, conditions1);
Expand Down

0 comments on commit 8788eb0

Please sign in to comment.