Skip to content

Commit

Permalink
better test
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Jan 28, 2025
1 parent 94c517c commit 1b1c26e
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 int64_t status = Eval(ct.arguments[2], evaluator);
return status == ct.arguments[1].Contains(value);
const bool status = Eval(ct.arguments[2], evaluator);
return status == ct.arguments[1].Contains(value) != 0;
}

bool CheckSlidingSum(const Constraint& ct,
Expand Down

0 comments on commit 1b1c26e

Please sign in to comment.