From 96ca9a7aba12e919c82ea06c0ce89cc86a724b2c Mon Sep 17 00:00:00 2001 From: Anton Danielsson Date: Mon, 5 Oct 2015 14:00:20 +0200 Subject: [PATCH] Fixed int64 to double cast warning. --- src/sysinfo.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sysinfo.cc b/src/sysinfo.cc index 149a6807..f45d1236 100644 --- a/src/sysinfo.cc +++ b/src/sysinfo.cc @@ -243,9 +243,9 @@ void InitializeSystemInfo() { SHGetValueA(HKEY_LOCAL_MACHINE, "HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0", "~MHz", nullptr, &data, &data_size))) - cpuinfo_cycles_per_second = (int64_t)data * (int64_t)(1000 * 1000); // was mhz + cpuinfo_cycles_per_second = static_cast((int64_t)data * (int64_t)(1000 * 1000)); // was mhz else - cpuinfo_cycles_per_second = EstimateCyclesPerSecond(); + cpuinfo_cycles_per_second = static_cast(EstimateCyclesPerSecond()); // TODO: also figure out cpuinfo_num_cpus #elif defined BENCHMARK_OS_MACOSX