... | ... |
@@ -399,7 +399,7 @@ static inline int log2_ceil(uint32_t x) |
399 | 399 |
/* improved djb2 hash from http://www.cse.yorku.ca/~oz/hash.html */ |
400 | 400 |
static int djb2_hash(uint32_t key) |
401 | 401 |
{ |
402 |
- int h = 5381; |
|
402 |
+ uint32_t h = 5381; |
|
403 | 403 |
|
404 | 404 |
h = (h * 33) ^ ((key >> 24) & 0xFF); // xxx: probably not needed at all |
405 | 405 |
h = (h * 33) ^ ((key >> 16) & 0xFF); |