Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v90-bugfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
scip-ci committed Jan 17, 2024
2 parents a7df6fc + c3fa3cc commit 24711fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scip/heur_dps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,7 @@ SCIP_RETCODE calculateShift(
*/
for( v = 0; v < linking->nblocks - *nviolatedblocksrhs; v++ )
{
/* coverity[uninit_use] */
part = linking->currentrhs[nonviolatedblocksrhs[v]] - residual/(linking->nblocks - *nviolatedblocksrhs - v);
part = MIN(MAX(part, linking->minactivity[nonviolatedblocksrhs[v]]), linking->maxactivity[nonviolatedblocksrhs[v]]);
shift_tmp = part - linking->currentrhs[nonviolatedblocksrhs[v]];
Expand Down Expand Up @@ -1193,6 +1194,7 @@ SCIP_RETCODE calculateShift(
*/
for( v = 0; v < linking->nblocks - *nviolatedblockslhs; v++ )
{
/* coverity[uninit_use] */
part = linking->currentlhs[nonviolatedblockslhs[v]] - residual/(linking->nblocks - *nviolatedblockslhs - v);
part = MIN(MAX(part, linking->minactivity[nonviolatedblockslhs[v]]), linking->maxactivity[nonviolatedblockslhs[v]]);
shift_tmp = part - linking->currentlhs[nonviolatedblockslhs[v]];
Expand Down

0 comments on commit 24711fd

Please sign in to comment.