From c5b2469fe7586e5fb23856b6f4d9e840af8f663b Mon Sep 17 00:00:00 2001 From: kd-11 Date: Mon, 9 Jul 2018 21:25:30 +0300 Subject: [PATCH] silence warning --- Utilities/CPUStats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/CPUStats.h b/Utilities/CPUStats.h index 3d2f9b8f66..97a1e60af8 100644 --- a/Utilities/CPUStats.h +++ b/Utilities/CPUStats.h @@ -95,7 +95,7 @@ public: GetProcessTimes(m_self, &ftime, &ftime, &fsys, &fusr); memcpy(&sys, &fsys, sizeof(FILETIME)); memcpy(&usr, &fusr, sizeof(FILETIME)); - double percent = (sys.QuadPart - m_sys_cpu.QuadPart) + (usr.QuadPart - m_usr_cpu.QuadPart); + double percent = double(sys.QuadPart - m_sys_cpu.QuadPart) + (usr.QuadPart - m_usr_cpu.QuadPart); percent /= (now.QuadPart - m_last_cpu.QuadPart); percent /= m_num_processors;