From: roland Date: Tue, 19 Mar 1996 19:53:35 +0000 (+0000) Subject: Sat Feb 17 11:29:29 1996 David Mosberger-Tang X-Git-Tag: libc-960320~45 X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=commitdiff_plain;h=c430aec8e4e79956d1947a24c02489763617acc2 Sat Feb 17 11:29:29 1996 David Mosberger-Tang * locale/locfile-hash.c (compute_hashval): make shifted constant a long to avoid loosing bits on 64 bit machines. --- diff --git a/locale/locfile-hash.c b/locale/locfile-hash.c index 75cb77f882..d977822664 100644 --- a/locale/locfile-hash.c +++ b/locale/locfile-hash.c @@ -205,7 +205,7 @@ compute_hashval(const char *key, size_t keylen) { hval <<= 4; hval += key[cnt++]; - g = hval & (0xf << (LONGBITS - 4)); + g = hval & (0xfL << (LONGBITS - 4)); if (g != 0) { hval ^= g >> (LONGBITS - 8);