Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Jan 28, 2025
1 parent 1b1c26e commit 9a77900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ortools/flatzinc/checker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1072,8 +1072,8 @@ bool CheckSetNotIn(const Constraint& ct,
bool CheckSetInReif(const Constraint& ct,
const std::function<int64_t(Variable*)>& evaluator) {
const int64_t value = Eval(ct.arguments[0], evaluator);
const bool status = Eval(ct.arguments[2], evaluator);
return status == ct.arguments[1].Contains(value) != 0;
const bool status = Eval(ct.arguments[2], evaluator) != 0;
return status == ct.arguments[1].Contains(value);
}

bool CheckSlidingSum(const Constraint& ct,
Expand Down

0 comments on commit 9a77900

Please sign in to comment.