From: Richard M. Stallman Date: Fri, 25 Aug 2006 07:47:12 +0000 (+0000) Subject: (sxhash_string): Rotate properly; don't lose bits. X-Git-Tag: emacs-pretest-22.0.90~892 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=11f56bbcfee486e60d33c9d18d0ca9a01ebbaa6d;p=emacs.git (sxhash_string): Rotate properly; don't lose bits. --- diff --git a/src/fns.c b/src/fns.c index ca4a098878a..228d48049f0 100644 --- a/src/fns.c +++ b/src/fns.c @@ -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;