summaryrefslogtreecommitdiff
path: root/third-party/benchmark/test/user_counters_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third-party/benchmark/test/user_counters_test.cc')
-rw-r--r--third-party/benchmark/test/user_counters_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/third-party/benchmark/test/user_counters_test.cc b/third-party/benchmark/test/user_counters_test.cc
index 377bb32ca948..1cc74552a1bd 100644
--- a/third-party/benchmark/test/user_counters_test.cc
+++ b/third-party/benchmark/test/user_counters_test.cc
@@ -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,