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