Commit 21600b96 by Joao Paulo Magalhaes

Fix VS warning.

parent 47226ccd
...@@ -22,7 +22,7 @@ void BM_Counters_Simple(benchmark::State& state) { ...@@ -22,7 +22,7 @@ void BM_Counters_Simple(benchmark::State& state) {
while (state.KeepRunning()) { while (state.KeepRunning()) {
} }
state.counters["foo"] = 1; state.counters["foo"] = 1;
state.counters["bar"] = 2 * state.iterations(); state.counters["bar"] = 2 * (double)state.iterations();
} }
BENCHMARK(BM_Counters_Simple); BENCHMARK(BM_Counters_Simple);
ADD_CASES(TC_ConsoleOut, {{"^BM_Counters_Simple %console_report bar=%hrfloat foo=%hrfloat$"}}); ADD_CASES(TC_ConsoleOut, {{"^BM_Counters_Simple %console_report bar=%hrfloat foo=%hrfloat$"}});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment