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:
parent
cedf3dba4e
commit
1fce6a7535
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user