Fix CRC32

This commit is contained in:
Jérôme Leclercq
2023-09-08 09:58:05 +02:00
committed by GitHub
parent 85d13ae436
commit e8ddac4964

View File

@@ -105,9 +105,8 @@ namespace Nz
ByteArray CRC32Hasher::End() ByteArray CRC32Hasher::End()
{ {
#ifdef NAZARA_BIG_ENDIAN m_crc = HostToLittleEndian(m_crc ^ 0xFFFFFFFF);
m_crc = ByteSwap(m_crc ^ 0xFFFFFFFF);
#endif
return ByteArray(reinterpret_cast<UInt8*>(&m_crc), 4); return ByteArray(reinterpret_cast<UInt8*>(&m_crc), 4);
} }