Skip to content

Commit

Permalink
Fix failing test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-abel committed Oct 17, 2023
1 parent 7d37795 commit 3205b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/benchmark_runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ IterationCount BenchmarkRunner::PredictNumItersNeeded(

// So what seems to be the sufficiently-large iteration count? Round up.
const IterationCount max_next_iters = static_cast<IterationCount>(
std::lround(std::max(multiplier * static_cast<double>(i.iters),
std::llround(std::max(multiplier * static_cast<double>(i.iters),
static_cast<double>(i.iters) + 1.0)));
// But we do have *some* limits though..
const IterationCount next_iters = std::min(max_next_iters, kMaxIterations);
Expand Down

0 comments on commit 3205b96

Please sign in to comment.