(sxhash_string): Rotate properly; don't lose bits.
This commit is contained in:
parent
fda9748457
commit
11f56bbcfe
1 changed files with 1 additions and 1 deletions
|
@ -5027,7 +5027,7 @@ sxhash_string (ptr, len)
|
|||
c = *p++;
|
||||
if (c >= 0140)
|
||||
c -= 40;
|
||||
hash = ((hash << 3) + (hash >> 28) + c);
|
||||
hash = ((hash << 4) + (hash >> 28) + c);
|
||||
}
|
||||
|
||||
return hash & INTMASK;
|
||||
|
|
Loading…
Add table
Reference in a new issue