Skip to content

Commit 1de0ff6

Browse files
committed
fix comparison of mixed types
1 parent cb8525c commit 1de0ff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qpsolver/feasibility_bounded.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ static void computeStartingPointBounded(Instance& instance,
1818
L.resize(instance.num_var * instance.num_var);
1919

2020
// compute cholesky factorization of Q
21-
for (size_t col = 0; col < instance.num_var; col++) {
22-
for (size_t idx = instance.Q.mat.start[col]; idx < instance.Q.mat.start[col+1]; idx++) {
21+
for (size_t col = 0; col < (size_t)instance.num_var; col++) {
22+
for (size_t idx = instance.Q.mat.start[col]; idx < (size_t)instance.Q.mat.start[col+1]; idx++) {
2323
double sum = 0;
2424
size_t row = instance.Q.mat.index[idx];
2525
if (row == col) {

0 commit comments

Comments
 (0)