mirror of https://gitee.com/bigwinds/arangodb
fixed issue #2490
This commit is contained in:
parent
71241e6048
commit
8858b81e2b
|
@ -465,7 +465,7 @@ extern "C" {
|
||||||
#ifndef TRI_UNALIGNED_ACCESS
|
#ifndef TRI_UNALIGNED_ACCESS
|
||||||
// byte-wise hashing to support platforms that don't permit
|
// byte-wise hashing to support platforms that don't permit
|
||||||
// unaligned accesses of uint32_t values
|
// unaligned accesses of uint32_t values
|
||||||
uint8_t* currentChar = reinterpret_cast<uint8_t const*>(data);
|
uint8_t const* currentChar = reinterpret_cast<uint8_t const*>(data);
|
||||||
while (length--) {
|
while (length--) {
|
||||||
value = (value >> 8) ^ Crc32Lookup[0][(value & 0xFF) ^ *currentChar++];
|
value = (value >> 8) ^ Crc32Lookup[0][(value & 0xFF) ^ *currentChar++];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue