Skip to content

Commit

Permalink
fix find
Browse files Browse the repository at this point in the history
  • Loading branch information
hzfan committed Jan 25, 2021
1 parent 455f3ff commit b1f799d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arith/solve_linear_inequality.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void MoveEquality(std::vector<PrimExpr>* upper_bounds,
std::vector<PrimExpr>* equalities) {
// those exist in both upper & lower bounds will be moved to equalities
for (auto ub = upper_bounds->begin(); ub != upper_bounds->end();) {
auto lb = std::find(lower_bounds->begin(), lower_bounds->end(), [&](const PrimExpr& e) {
auto lb = std::find_if(lower_bounds->begin(), lower_bounds->end(), [&](const PrimExpr& e) {
return StructuralEqual()(e, *ub);
});
if (lb != lower_bounds->end()) {
Expand Down

0 comments on commit b1f799d

Please sign in to comment.