mirror of
https://github.com/google/benchmark.git
synced 2025-03-22 23:20:29 +08:00
Fixed a warning caused by an implicit narrowing cast.
This commit is contained in:
parent
277e7aafe6
commit
dce2ebb403
@ -660,7 +660,7 @@ void RunBenchmark(const benchmark::internal::Benchmark::Instance& b,
|
|||||||
thread.join();
|
thread.join();
|
||||||
}
|
}
|
||||||
for (std::size_t ti = 0; ti < pool.size(); ++ti) {
|
for (std::size_t ti = 0; ti < pool.size(); ++ti) {
|
||||||
pool[ti] = std::thread(&RunInThread, &b, iters, ti, &total);
|
pool[ti] = std::thread(&RunInThread, &b, iters, static_cast<int>(ti), &total);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Run directly in this thread
|
// Run directly in this thread
|
||||||
|
Loading…
Reference in New Issue
Block a user