diff --git a/src/benchmark_runner.cc b/src/benchmark_runner.cc index dedfac03be..b5872c2f33 100644 --- a/src/benchmark_runner.cc +++ b/src/benchmark_runner.cc @@ -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( - std::lround(std::max(multiplier * static_cast(i.iters), + std::llround(std::max(multiplier * static_cast(i.iters), static_cast(i.iters) + 1.0))); // But we do have *some* limits though.. const IterationCount next_iters = std::min(max_next_iters, kMaxIterations);