From d0f1175e9440779ee112ab10c089a24736144384 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 24 Oct 2003 03:22:26 +0000 Subject: (__hash_string): Zero-extend each char from the string; the old code did a sign-extend on some platforms. --- intl/hash-string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intl/hash-string.c') diff --git a/intl/hash-string.c b/intl/hash-string.c index e4b0f8fe57..465456f4b5 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) { -- cgit v1.2.3