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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

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