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