Fixed build.

This commit is contained in:
Branimir Karadžić
2023-11-23 10:12:05 -08:00
parent 08baf8fa64
commit be3e348eb2
4 changed files with 26 additions and 27 deletions

View File

@@ -96,13 +96,13 @@ namespace bx
DiyFp Normalize() const
{
uint32_t s = uint64_cntlz(f);
uint8_t s = countLeadingZeros(f);
return DiyFp(f << s, e - s);
}
DiyFp NormalizeBoundary() const
{
uint32_t index = uint64_cntlz(f);
uint8_t index = countLeadingZeros(f);
return DiyFp (f << index, e - index);
}

View File

@@ -217,16 +217,15 @@ namespace bx
*_inOutSize = uint32_t(result);
return true;
}
return false;
#elif BX_PLATFORM_OSX
uint32_t len = *_inOutSize;
bool result = _NSGetExecutablePath(_out, &len);
if (0 == result)
{
return true;
}
#endif // BX_PLATFORM_*
return 0 == result;
#else
return false;
#endif // BX_PLATFORM_*
}
static bool getHomePath(char* _out, uint32_t* _inOutSize)