Skip to content

Commit 7fecc0b

Browse files
committed
minor style changes
1 parent 9c6be7b commit 7fecc0b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/scipsdp/cons_sdp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4371,7 +4371,7 @@ SCIP_RETCODE multiaggrVar(
43714371
/* free issymunique, because it is invalid */
43724372
SCIPfreeBlockMemoryArrayNull(scip, &consdata->issymunique, consdata->nvars);
43734373

4374-
(consdata->nvars)--;
4374+
--(consdata->nvars);
43754375

43764376
/* iterate over all variables that variable v was aggregated to and insert the corresponding nonzeros */
43774377
for (aggrind = 0; aggrind < naggrvars; aggrind++)
@@ -4390,7 +4390,7 @@ SCIP_RETCODE multiaggrVar(
43904390
}
43914391
}
43924392

4393-
if ( aggrconsind > -1 )
4393+
if ( aggrconsind >= 0 )
43944394
{
43954395
/* if the variable to aggregate to is already part of this sdp-constraint, just add the nonzeros of the old variable to it */
43964396

@@ -4473,7 +4473,7 @@ SCIP_RETCODE multiaggrVar(
44734473
savedcol[*nfixednonz] = cols[i];
44744474
savedrow[*nfixednonz] = rows[i];
44754475
savedval[*nfixednonz] = vals[i] * constant; /* multiply with constant, since this is added to the constant matrix */
4476-
(*nfixednonz)++;
4476+
++(*nfixednonz);
44774477
}
44784478
}
44794479

0 commit comments

Comments
 (0)