Merge pull request #76808 from davicr/x86-32_build_fix

Fix building the Windows x86_32 target
This commit is contained in:
Rémi Verschelde 2023-05-08 12:21:00 +02:00
commit 903289fa0d
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 4 additions and 4 deletions

View File

@ -706,16 +706,16 @@ Dictionary OS_Windows::get_memory_info() const {
} }
if (pref_info.PhysicalTotal * pref_info.PageSize != 0) { if (pref_info.PhysicalTotal * pref_info.PageSize != 0) {
meminfo["physical"] = pref_info.PhysicalTotal * pref_info.PageSize; meminfo["physical"] = static_cast<int64_t>(pref_info.PhysicalTotal * pref_info.PageSize);
} }
if (pref_info.PhysicalAvailable * pref_info.PageSize != 0) { if (pref_info.PhysicalAvailable * pref_info.PageSize != 0) {
meminfo["free"] = pref_info.PhysicalAvailable * pref_info.PageSize; meminfo["free"] = static_cast<int64_t>(pref_info.PhysicalAvailable * pref_info.PageSize);
} }
if (pref_info.CommitLimit * pref_info.PageSize != 0) { if (pref_info.CommitLimit * pref_info.PageSize != 0) {
meminfo["available"] = pref_info.CommitLimit * pref_info.PageSize; meminfo["available"] = static_cast<int64_t>(pref_info.CommitLimit * pref_info.PageSize);
} }
if (HighLimit - LowLimit != 0) { if (HighLimit - LowLimit != 0) {
meminfo["stack"] = HighLimit - LowLimit; meminfo["stack"] = static_cast<int64_t>(HighLimit - LowLimit);
} }
return meminfo; return meminfo;