From 3fd3b805af155de48402d3a4a2b5f47ab142af39 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 20 Oct 2014 12:55:59 +1100 Subject: [PATCH] adler: fix c-style cast without const error --- hash/adler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hash/adler.cpp b/hash/adler.cpp index 8e46fb0e..b1105195 100644 --- a/hash/adler.cpp +++ b/hash/adler.cpp @@ -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 (_data), + static_cast (_data) + _size); }