mirror of https://gitee.com/bigwinds/arangodb
ensure signedness of data
This commit is contained in:
parent
26b6885a86
commit
3901e7f15c
|
@ -758,7 +758,7 @@ static uint64_t HashBlock (uint64_t hash, char const* buffer, size_t length) {
|
||||||
nMagicPrime = 0x00000100000001b3ULL;
|
nMagicPrime = 0x00000100000001b3ULL;
|
||||||
|
|
||||||
for (j = 0; j < length; ++j) {
|
for (j = 0; j < length; ++j) {
|
||||||
hash ^= buffer[j];
|
hash ^= ((int8_t const*) buffer)[j];
|
||||||
hash *= nMagicPrime;
|
hash *= nMagicPrime;
|
||||||
}
|
}
|
||||||
return hash;
|
return hash;
|
||||||
|
|
Loading…
Reference in New Issue