diff --git a/shared/hash.c b/shared/hash.c index 38b7bb30..00da449a 100644 --- a/shared/hash.c +++ b/shared/hash.c @@ -94,7 +94,7 @@ static inline unsigned int hash_superfast(const char *key, unsigned int len) case 3: hash += get_unaligned((uint16_t *)key); hash ^= hash << 16; - hash ^= key[2] << 18; + hash ^= ((uint8_t)key[2]) << 18; hash += hash >> 11; break;