projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e97bfee
)
(__hash_string): Zero-extend each char from the string; the old code did a sign-exten...
author
Ulrich Drepper
<drepper@redhat.com>
Fri, 24 Oct 2003 03:22:26 +0000
(
03:22
+0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Fri, 24 Oct 2003 03:22:26 +0000
(
03:22
+0000)
intl/hash-string.c
patch
|
blob
|
history
diff --git
a/intl/hash-string.c
b/intl/hash-string.c
index
e4b0f8f
..
465456f
100644
(file)
--- 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)
{