1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00

(sxhash_string): Rotate properly; don't lose bits.

This commit is contained in:
Richard M. Stallman 2006-08-25 07:47:12 +00:00
parent fda9748457
commit 11f56bbcfe

View File

@ -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;