Skip to content

Commit 5331696

Browse files
committed
Address coderabbit review
1 parent ec5e015 commit 5331696

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/src/dual_simplex/crossover.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ i_t dual_push(const lp_problem_t<i_t, f_t>& lp,
460460

461461
// y <- y + step_length * delta_y
462462
// Optimized: Only update non-zero elements from sparse representation
463-
for (i_t nnz_idx = 0; nnz_idx < delta_y_sparse.i.size(); ++nnz_idx) {
463+
for (i_t nnz_idx = 0; nnz_idx < static_cast<i_t>(delta_y_sparse.i.size()); ++nnz_idx) {
464464
const i_t i = delta_y_sparse.i[nnz_idx];
465465
y[i] += step_length * delta_y_sparse.x[nnz_idx];
466466
}

0 commit comments

Comments
 (0)