diff --git a/solvers/cplexmp/cplexmpbackend.cc b/solvers/cplexmp/cplexmpbackend.cc index e94e59229..d12902e41 100644 --- a/solvers/cplexmp/cplexmpbackend.cc +++ b/solvers/cplexmp/cplexmpbackend.cc @@ -297,7 +297,7 @@ namespace mp { val.push_back(x0[i]); } } - int beg[2] = { 0, val.size() }; + int beg[2] = { 0, static_cast(val.size()) }; CPLEX_CALL(CPXaddmipstarts(env(), lp(), 1, val.size(), beg, idx.data(), val.data(), 0, nullptr)); }