2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-06-05 22:33:28 +00:00

CRC32 data pointer should remain const

This commit is contained in:
Phillip Stephens 2016-08-04 15:28:32 -07:00
parent cedf3dba4e
commit 1fce6a7535

View File

@ -45,7 +45,7 @@ uint32_t CCRC32::Calculate(const void* data, uint32_t length)
return 0;
uint32_t checksum = 0xFFFFFFFF;
uint8_t* buf = (uint8_t*)data;
const uint8_t* buf = reinterpret_cast<const uint8_t*>(data);
uint32_t words = length / 4;
while ((words--) > 0)
{