Skip to content

Commit 1b1c26e

Browse files
committed
better test
1 parent 94c517c commit 1b1c26e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: ortools/flatzinc/checker.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,8 @@ bool CheckSetNotIn(const Constraint& ct,
10721072
bool CheckSetInReif(const Constraint& ct,
10731073
const std::function<int64_t(Variable*)>& evaluator) {
10741074
const int64_t value = Eval(ct.arguments[0], evaluator);
1075-
const int64_t status = Eval(ct.arguments[2], evaluator);
1076-
return status == ct.arguments[1].Contains(value);
1075+
const bool status = Eval(ct.arguments[2], evaluator);
1076+
return status == ct.arguments[1].Contains(value) != 0;
10771077
}
10781078

10791079
bool CheckSlidingSum(const Constraint& ct,

0 commit comments

Comments
 (0)