Commit 92c858ae authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '4ccccd6c'

* commit '4ccccd6c':
  g2meet: use an unsigned type for the djb hash
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 9cf95654 4ccccd6c
......@@ -400,7 +400,7 @@ static inline int log2_ceil(uint32_t x)
/* improved djb2 hash from http://www.cse.yorku.ca/~oz/hash.html */
static int djb2_hash(uint32_t key)
{
int h = 5381;
uint32_t h = 5381;
h = (h * 33) ^ ((key >> 24) & 0xFF); // xxx: probably not needed at all
h = (h * 33) ^ ((key >> 16) & 0xFF);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment