From 11f56bbcfee486e60d33c9d18d0ca9a01ebbaa6d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 25 Aug 2006 07:47:12 +0000 Subject: [PATCH] (sxhash_string): Rotate properly; don't lose bits. --- src/fns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2