summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-05-17 11:50:52 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-05-17 11:50:52 +0200
commita3dc9bd19f976cbc84ba3d1a16c72257b42b28ba (patch)
tree88e2700d5772a94e4f98cbcbc8a7b9b04b21173a /src
parent8be39c692886841762726357f4ea209c9b19f98b (diff)
Fix memchecker issue found by coverity scan.
Diffstat (limited to 'src')
-rw-r--r--src/memchecker.cc2
1 files changed, 1 insertions, 1 deletions
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);