mirror of https://github.com/AxioDL/metaforce.git
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;
|
return 0;
|
||||||
|
|
||||||
uint32_t checksum = 0xFFFFFFFF;
|
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;
|
uint32_t words = length / 4;
|
||||||
while ((words--) > 0)
|
while ((words--) > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue