diff options
author | Ulrich Drepper <drepper@redhat.com> | 1996-11-15 04:08:00 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1996-11-15 04:08:00 +0000 |
commit | 54d79e995d5a6d0a393ed913b6e26dccc63de5b7 (patch) | |
tree | b758eeac8325f123f161c8d62c5956dc2a6d2556 /db/hash/hash.c | |
parent | b296c233447a37f77ccd9989fce24b45a8db1afa (diff) | |
download | glibc-54d79e995d5a6d0a393ed913b6e26dccc63de5b7.tar.gz glibc-54d79e995d5a6d0a393ed913b6e26dccc63de5b7.tar.xz glibc-54d79e995d5a6d0a393ed913b6e26dccc63de5b7.zip |
update from main archive 961114 cvs/libc-961115
Diffstat (limited to 'db/hash/hash.c')
-rw-r--r-- | db/hash/hash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/db/hash/hash.c b/db/hash/hash.c index 1f26c7e68a..db6fd69a4b 100644 --- a/db/hash/hash.c +++ b/db/hash/hash.c @@ -157,7 +157,8 @@ __hash_open(file, flags, mode, info, dflags) if (hashp->VERSION != HASHVERSION && hashp->VERSION != OLDHASHVERSION) RETURN_ERROR(EFTYPE, error1); - if (hashp->hash(CHARKEY, sizeof(CHARKEY)) != hashp->H_CHARKEY) + if (hashp->hash(CHARKEY, sizeof(CHARKEY)) + != (u_int32_t) hashp->H_CHARKEY) RETURN_ERROR(EFTYPE, error1); /* * Figure out how many segments we need. Max_Bucket is the @@ -744,7 +745,7 @@ hash_seq(dbp, key, data, flag) for (bp = NULL; !bp || !bp[0]; ) { if (!(bufp = hashp->cpage)) { for (bucket = hashp->cbucket; - bucket <= hashp->MAX_BUCKET; + bucket <= (u_int32_t) hashp->MAX_BUCKET; bucket++, hashp->cndx = 1) { bufp = __get_buf(hashp, bucket, NULL, 0); if (!bufp) @@ -848,7 +849,7 @@ __expand_table(hashp) hashp->OVFL_POINT = spare_ndx; } - if (new_bucket > hashp->HIGH_MASK) { + if (new_bucket > (u_int32_t) hashp->HIGH_MASK) { /* Starting a new doubling */ hashp->LOW_MASK = hashp->HIGH_MASK; hashp->HIGH_MASK = new_bucket | hashp->LOW_MASK; |