Skip to content

Commit d16cfda

Browse files
author
Julian Hall
committed
Added static_cast<Int> to remove compiler warning in line 226 of ipm/hipo/factorhighs/HybridSolveHandler.cpp
1 parent a2946b6 commit d16cfda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

highs/ipm/hipo/factorhighs/HybridSolveHandler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ void HybridSolveHandler::processForwardTask(Int task, double* x) const {
223223
// assembel contributions of children
224224
child = first_child_[task];
225225
while (child != -1) {
226-
for (Int i = 0; i < task_rows_[child].size(); ++i) {
226+
for (Int i = 0; i < static_cast<Int>(task_rows_[child].size()); ++i) {
227227
if (task_rows_[child][i] < end_col_in_task)
228228
x[task_rows_[child][i]] -= task_vals_[child][i];
229229
else {
@@ -633,4 +633,4 @@ void HybridSolveHandler::inertia(Int& pos, Int& neg, Int& zero,
633633
}
634634
}
635635

636-
} // namespace hipo
636+
} // namespace hipo

0 commit comments

Comments
 (0)