Skip to content

Commit 19ec378

Browse files
committed
Fix type conversion warning
1 parent 30b8f51 commit 19ec378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/xpress_model.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ ConstraintIndex Model::add_exp_cone_constraint(const Vector<VariableIndex> &vari
946946
Tvp{POI_XPRS_TOK_OP, POI_XPRS_OP_MULTIPLY}, // *
947947
Tvp{POI_XPRS_TOK_EOF, {}}); // EOF
948948

949-
int begs[] = {0, std::ssize(types)};
949+
int begs[] = {0, static_cast<int>(std::ssize(types))};
950950
_check(XPRSnlpaddformulas(m_model.get(), 1, &rowidx, begs, 1, types, values));
951951
}
952952
else
@@ -963,7 +963,7 @@ ConstraintIndex Model::add_exp_cone_constraint(const Vector<VariableIndex> &vari
963963
Tvp{POI_XPRS_TOK_OP, POI_XPRS_OP_UMINUS}, // -
964964
Tvp{POI_XPRS_TOK_EOF, {}}); // EOF
965965

966-
int begs[] = {0, std::ssize(types)};
966+
int begs[] = {0, static_cast<int>(std::ssize(types))};
967967
_check(XPRSnlpaddformulas(m_model.get(), 1, &rowidx, begs, 1, types, values));
968968
}
969969

0 commit comments

Comments
 (0)