aboutsummaryrefslogtreecommitdiff
path: root/intl
diff options
context:
space:
mode:
Diffstat (limited to 'intl')
-rw-r--r--intl/hash-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/intl/hash-string.c b/intl/hash-string.c
index e4b0f8f..465456f 100644
--- a/intl/hash-string.c
+++ b/intl/hash-string.c
@@ -35,7 +35,7 @@ __hash_string (str_param)
while (*str != '\0')
{
hval <<= 4;
- hval += (unsigned long int) *str++;
+ hval += (unsigned char) *str++;
g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
if (g != 0)
{