mirror of
https://github.com/google/benchmark.git
synced 2024-11-26 07:32:19 +00:00
Fixes compilation error caused by integer precision loss due to implicit (#518)
conversion in sysinfo.cc
This commit is contained in:
parent
9f5694ceb6
commit
4fe0206b65
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue