mirror of
https://github.com/google/benchmark.git
synced 2025-03-26 10:51:27 +08:00
Fix Werror=old-style-cast
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
7b03f74192
commit
0e78ea109f
@ -26,7 +26,7 @@ void BM_Counters_Simple(benchmark::State& state) {
|
||||
for (auto _ : state) {
|
||||
}
|
||||
state.counters["foo"] = 1;
|
||||
state.counters["bar"] = 2 * (double)state.iterations();
|
||||
state.counters["bar"] = 2 * static_cast<double>(state.iterations());
|
||||
}
|
||||
BENCHMARK(BM_Counters_Simple);
|
||||
ADD_CASES(TC_ConsoleOut,
|
||||
|
Loading…
Reference in New Issue
Block a user