From 8858b81e2bc3077c56fc9c20fb7864e99c471b0c Mon Sep 17 00:00:00 2001 From: jsteemann Date: Mon, 22 May 2017 09:40:08 +0200 Subject: [PATCH] fixed issue #2490 --- lib/Basics/hashes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Basics/hashes.cpp b/lib/Basics/hashes.cpp index fc83e61e68..20eb937627 100644 --- a/lib/Basics/hashes.cpp +++ b/lib/Basics/hashes.cpp @@ -465,7 +465,7 @@ extern "C" { #ifndef TRI_UNALIGNED_ACCESS // byte-wise hashing to support platforms that don't permit // unaligned accesses of uint32_t values - uint8_t* currentChar = reinterpret_cast(data); + uint8_t const* currentChar = reinterpret_cast(data); while (length--) { value = (value >> 8) ^ Crc32Lookup[0][(value & 0xFF) ^ *currentChar++]; }