diff --git a/ext/or-tools/constraint.cpp b/ext/or-tools/constraint.cpp index 2b9f7c4..dbbff49 100644 --- a/ext/or-tools/constraint.cpp +++ b/ext/or-tools/constraint.cpp @@ -424,7 +424,7 @@ void init_constraint(Rice::Module& m) { // TODO figure out how to use callback with multiple cores parameters.set_num_search_workers(1); - m.GetOrCreate()->RegisterExternalBooleanAsLimit(&stopped); + m.GetOrCreate()->RegisterExternalBooleanAsLimit(stopped2); m.Add(NewFeasibleSolutionObserver( [&](const CpSolverResponse& r) {