adler: fix c-style cast without const error

This commit is contained in:
Danny Robson 2014-10-20 12:55:59 +11:00
parent 23b0a7b146
commit 3fd3b805af

View File

@ -28,7 +28,8 @@ static const unsigned MODULUS = 65521;
uint32_t
adler32 (const void* restrict _data, size_t _size)
{
return adler32 ((uint8_t*)_data, (uint8_t*)_data + _size);
return adler32 (static_cast<const uint8_t*> (_data),
static_cast<const uint8_t*> (_data) + _size);
}