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
1 changed files with 1 additions and 1 deletions

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)
{