From 3205b966a36a51a083a6356062cbc39c3f199f9b Mon Sep 17 00:00:00 2001 From: Andreas Abel Date: Tue, 17 Oct 2023 13:11:18 +0200 Subject: [PATCH] Fix failing test on Windows --- src/benchmark_runner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);