about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
Diffstat (limited to 'locale')
-rw-r--r--locale/locfile-hash.c2
1 files changed, 1 insertions, 1 deletions
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);