[*] 32bit builds can run on 64bit systems

This commit is contained in:
Reece Wilson 2023-08-30 12:36:59 +01:00
parent 627cdd069f
commit af8737e9d2
2 changed files with 7 additions and 7 deletions

View File

@ -41,9 +41,9 @@ namespace Aurora::HWInfo
*/
AUKN_SYM AuOptional<RamStat> GetMemStatStartup();
AUKN_SYM AuOptional<AuUInt> GetSwapSize();
AUKN_SYM AuOptional<AuUInt64> GetSwapSize();
AUKN_SYM AuOptional<AuUInt> GetPhysicalSize();
AUKN_SYM AuOptional<AuUInt64> GetPhysicalSize();
AUKN_SYM AuUInt32 GetPageSize();
}

View File

@ -271,9 +271,9 @@ namespace Aurora::HWInfo
return gPageSize;
}
AUKN_SYM AuOptional<AuUInt> GetSwapSize()
AUKN_SYM AuOptional<AuUInt64> GetSwapSize()
{
static AuOptional<AuUInt> gCached;
static AuOptional<AuUInt64> gCached;
if (gCached)
{
return gCached;
@ -283,16 +283,16 @@ namespace Aurora::HWInfo
{
if (auto optPhys = GetMemStatPhysical())
{
return gCached = (opt.value().qwAvailable - optPhys.value().qwAvailable);
return gCached = AuUInt64(opt.value().qwAvailable - optPhys.value().qwAvailable);
}
}
return {};
}
AUKN_SYM AuOptional<AuUInt> GetPhysicalSize()
AUKN_SYM AuOptional<AuUInt64> GetPhysicalSize()
{
static AuOptional<AuUInt> gCached;
static AuOptional<AuUInt64> gCached;
if (gCached)
{
return gCached;