diff --git a/Source/HWInfo/RamInfo.cpp b/Source/HWInfo/RamInfo.cpp index a87b114d..02145ec6 100644 --- a/Source/HWInfo/RamInfo.cpp +++ b/Source/HWInfo/RamInfo.cpp @@ -157,7 +157,7 @@ namespace Aurora::HWInfo #elif defined(AURORA_IS_BSD_DERIVED) auto vmInfo = GetVMInfo(); - auto pageSize = QueryBsdHwStat(HW_PAGESIZE).value_or(4096); + auto pageSize = AuUInt64(QueryBsdHwStat(HW_PAGESIZE).value_or(4096)); auto totalMem = AuUInt64(vmInfo.t_vm) * pageSize; auto freeMem = AuUInt64(vmInfo.t_free) * pageSize; @@ -207,7 +207,7 @@ namespace Aurora::HWInfo auto maxMem = QueryBsdHwStat(cmd); auto vmInfo = GetVMInfo(); - auto freeMem = AuUInt64(vmInfo.t_free) * QueryBsdHwStat(HW_PAGESIZE).value_or(4096); + auto freeMem = AuUInt64(vmInfo.t_free) * AuUInt64(QueryBsdHwStat(HW_PAGESIZE).value_or(4096)); return RamStat {vmInfo.t_rm, maxMem.value_or(freeMem)};