mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
g2meet: use an unsigned type for the djb hash
This commit is contained in:
parent
007e27d363
commit
4ccccd6c40
@ -399,7 +399,7 @@ static inline int log2_ceil(uint32_t x)
|
|||||||
/* improved djb2 hash from http://www.cse.yorku.ca/~oz/hash.html */
|
/* improved djb2 hash from http://www.cse.yorku.ca/~oz/hash.html */
|
||||||
static int djb2_hash(uint32_t key)
|
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 >> 24) & 0xFF); // xxx: probably not needed at all
|
||||||
h = (h * 33) ^ ((key >> 16) & 0xFF);
|
h = (h * 33) ^ ((key >> 16) & 0xFF);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user