Fixes compilation error caused by integer precision loss due to implicit (#518)

conversion in sysinfo.cc
This commit is contained in:
oskidan 2018-01-19 19:17:01 +02:00 committed by Dominic Hamon
parent 9f5694ceb6
commit 4fe0206b65

View file

@ -303,7 +303,7 @@ std::vector<CPUInfo::CacheInfo> GetCacheSizesWindows() {
if (!B.test(0)) continue; if (!B.test(0)) continue;
CInfo* Cache = &it->Cache; CInfo* Cache = &it->Cache;
CPUInfo::CacheInfo C; CPUInfo::CacheInfo C;
C.num_sharing = B.count(); C.num_sharing = static_cast<int>(B.count());
C.level = Cache->Level; C.level = Cache->Level;
C.size = Cache->Size; C.size = Cache->Size;
switch (Cache->Type) { switch (Cache->Type) {