From a3dc9bd19f976cbc84ba3d1a16c72257b42b28ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Wed, 17 May 2017 11:50:52 +0200 Subject: Fix memchecker issue found by coverity scan. --- src/memchecker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/memchecker.cc b/src/memchecker.cc index f444f85..ec0c9df 100644 --- a/src/memchecker.cc +++ b/src/memchecker.cc @@ -60,7 +60,7 @@ uint64_t MemChecker::calcFreeMemory() const #if DG_PLATFORM == DG_PLATFORM_LINUX struct sysinfo sys_info; sysinfo(&sys_info); - free_memory = sys_info.freeram * sys_info.mem_unit; + free_memory = (uint64_t)sys_info.freeram * (uint64_t)sys_info.mem_unit; #elif DG_PLATFORM == DG_PLATFORM_WINDOWS MEMORYSTATUSEX status; status.dwLength = sizeof(status); -- cgit v1.2.3