Skip to content

Commit c1eed97

Browse files
committed
Make std::min not look at different types
1 parent b1b8bb5 commit c1eed97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

highs/mip/HighsMachineSchedSeparator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bool HighsMachineSchedSeparator::findSingleMachineScheduleClique(
6464
};
6565

6666
HighsInt numRows = 0;
67-
HighsInt maxRows = std::min(1000, 2 * mipsolver.numRow());
67+
const HighsInt maxRows = std::min(HighsInt{1000}, 2 * mipsolver.numRow());
6868
adjacency.reserve(maxRows + 2);
6969
for (HighsInt row = 0; row != mipsolver.numRow(); row++) {
7070
double rowLower = mipsolver.model_->row_lower_[row];

0 commit comments

Comments
 (0)