UnitTests: Improve hash unit tests (add file test)

This commit is contained in:
Jérôme Leclercq
2022-02-10 11:56:35 +01:00
parent 67a24d2fe1
commit 979bf2cc80
3 changed files with 46 additions and 6 deletions

View File

@@ -104,7 +104,7 @@ namespace Nz
m_crc ^= 0xFFFFFFFF;
#ifdef NAZARA_LITTLE_ENDIAN
SwapBytes(&m_crc, sizeof(UInt32));
m_crc = SwapBytes(m_crc);
#endif
return ByteArray(reinterpret_cast<UInt8*>(&m_crc), 4);