Skip to content

Commit 34afbd3

Browse files
committed
Add explicit (int)
1 parent 55c49d4 commit 34afbd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/mp/flat/redef/MIP/abs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class AbsConverter_MIP :
2525
void ConvertCtxPos(const ItemType& ac, int ) {
2626
const int arg = ac.GetArguments()[0];
2727
const int res = ac.GetResultVar();
28-
const int flag = GetMC().AddVar(0.0, 1.0, var::INTEGER);
28+
const int flag = (int)GetMC().AddVar(0.0, 1.0, var::INTEGER);
2929
GetMC().AddConstraint(
3030
IndicatorConstraintLinLE(flag, 1,
3131
{{{1.0, 1.0}, {res, arg}}, 0.0}));

include/mp/flat/redef/std/range_con.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class RangeConstraintConverter :
245245
auto body = item.GetBody();
246246
body.add_term(1.0, slk);
247247
AlgConEQ lceq { std::move(body), item.ub() };
248-
int i1 = GetMC().AddConstraint(std::move(lceq));
248+
int i1 = (int)GetMC().AddConstraint(std::move(lceq));
249249
GetSlackLink().AddEntry({i, i1, slk});
250250
}
251251
void ConvertWithRhs(const ItemType& item, RangeRelations rr) {

0 commit comments

Comments
 (0)