Replace GetPlatformEndianness() by PlatformEndianness constexpr

from nazarautils
This commit is contained in:
SirLynix
2023-09-08 09:13:04 +02:00
parent a3bf80a805
commit 21680171a2
3 changed files with 4 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ namespace Nz
UInt64 ReadOgg(OggVorbis_File* file, void* buffer, UInt64 sampleCount)
{
constexpr int bigendian = (GetPlatformEndianness() == Endianness::LittleEndian) ? 0 : 1;
constexpr int bigendian = (PlatformEndianness == Endianness::LittleEndian) ? 0 : 1;
char* ptr = reinterpret_cast<char*>(buffer);
UInt64 remainingBytes = sampleCount * sizeof(Int16);