aboutsummaryrefslogtreecommitdiff
path: root/intl/hash-string.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-06-18 19:55:01 +0000
committerUlrich Drepper <drepper@redhat.com>1998-06-18 19:55:01 +0000
commit8cb569b756c19125593e556efa7c380203ff3787 (patch)
tree038cf95509293fc07986522a591eda03bd1b625d /intl/hash-string.h
parent3f121ed386d60de3bdf1dd054ba742b4ae17e7a1 (diff)
downloadglibc-8cb569b756c19125593e556efa7c380203ff3787.zip
glibc-8cb569b756c19125593e556efa7c380203ff3787.tar.gz
glibc-8cb569b756c19125593e556efa7c380203ff3787.tar.bz2
Update.
1998-06-18 19:49 Ulrich Drepper <drepper@cygnus.com> * intl/dcgettext.c: use complete type name. * intl/hash-string.h: Likewise. * intl/localealias.c: Undo patch from 1998-04-29. * intl/l10nflist.c: Likewise. * intl/loadinfo.h: Likewise.
Diffstat (limited to 'intl/hash-string.h')
-rw-r--r--intl/hash-string.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/intl/hash-string.h b/intl/hash-string.h
index 68af3ec..32ca018 100644
--- a/intl/hash-string.h
+++ b/intl/hash-string.h
@@ -36,9 +36,9 @@
/* Defines the so called `hashpjw' function by P.J. Weinberger
[see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
1986, 1987 Bell Telephone Laboratories, Inc.] */
-static unsigned long hash_string PARAMS ((const char *__str_param));
+static unsigned long int hash_string PARAMS ((const char *__str_param));
-static inline unsigned long
+static inline unsigned long int
hash_string (str_param)
const char *str_param;
{
@@ -50,8 +50,8 @@ hash_string (str_param)
while (*str != '\0')
{
hval <<= 4;
- hval += (unsigned long) *str++;
- g = hval & ((unsigned long) 0xf << (HASHWORDBITS - 4));
+ hval += (unsigned long int) *str++;
+ g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
if (g != 0)
{
hval ^= g >> (HASHWORDBITS - 8);