1
0
Fork 0

ensure signedness of data

This commit is contained in:
Jan Steemann 2014-12-19 11:14:29 +01:00
parent 26b6885a86
commit 3901e7f15c
1 changed files with 1 additions and 1 deletions

View File

@ -758,7 +758,7 @@ static uint64_t HashBlock (uint64_t hash, char const* buffer, size_t length) {
nMagicPrime = 0x00000100000001b3ULL;
for (j = 0; j < length; ++j) {
hash ^= buffer[j];
hash ^= ((int8_t const*) buffer)[j];
hash *= nMagicPrime;
}
return hash;