mirror of
https://github.com/google/benchmark.git
synced 2025-04-29 22:40:33 +08:00
Fix failing test on Windows
This commit is contained in:
parent
7d37795e8f
commit
3205b966a3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user