projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9820781
)
Sat Feb 17 11:29:29 1996 David Mosberger-Tang <davidm@azstarnet.com>
author
roland
<roland>
Tue, 19 Mar 1996 19:53:35 +0000
(19:53 +0000)
committer
roland
<roland>
Tue, 19 Mar 1996 19:53:35 +0000
(19:53 +0000)
* locale/locfile-hash.c (compute_hashval): make shifted constant
a long to avoid loosing bits on 64 bit machines.
locale/locfile-hash.c
patch
|
blob
|
history
diff --git
a/locale/locfile-hash.c
b/locale/locfile-hash.c
index
75cb77f
..
d977822
100644
(file)
--- 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++];
{
hval <<= 4;
hval += key[cnt++];
- g = hval & (0xf << (LONGBITS - 4));
+ g = hval & (0xf
L
<< (LONGBITS - 4));
if (g != 0)
{
hval ^= g >> (LONGBITS - 8);
if (g != 0)
{
hval ^= g >> (LONGBITS - 8);