Skip to content

Commit

Permalink
Fixed std::max error for 64-bit integers
Browse files Browse the repository at this point in the history
  • Loading branch information
jajhall committed Nov 29, 2022
1 parent b712d6c commit 661ac79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/HFactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ HighsInt HFactor::buildKernel() {
average_iteration_time = 0.9* average_iteration_time + 0.1 * iteration_time;

if (time_difference > this->time_limit_/1e3)
timer_frequency = std::max(1, timer_frequency/10);
timer_frequency = std::max(HighsInt(1), timer_frequency/10);
HighsInt iterations_left = kernel_dim - search_k + 1;
double remaining_time_bound = average_iteration_time * iterations_left;
double total_time_bound = current_time + remaining_time_bound;
Expand Down

0 comments on commit 661ac79

Please sign in to comment.