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_bigkey.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_bigkey.c')
-rw-r--r-- | db/hash/hash_bigkey.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/hash/hash_bigkey.c b/db/hash/hash_bigkey.c index 578314a645..d2a7dfd597 100644 --- a/db/hash/hash_bigkey.c +++ b/db/hash/hash_bigkey.c @@ -147,7 +147,7 @@ __big_insert(hashp, bufp, key, val) * Here's the hack to make sure that if the data ends on the * same page as the key ends, FREESPACE is at least one. */ - if (space == val_size && val_size == val->size) + if ((int) space == val_size && (size_t) val_size == val->size) move_bytes--; off = OFFSET(p) - move_bytes; memmove(cp + off, val_data, move_bytes); @@ -431,7 +431,7 @@ __big_return(hashp, bufp, ndx, val, set_current) } val->size = collect_data(hashp, bufp, (int)len, set_current); - if (val->size == -1) + if (val->size == (size_t) -1) return (-1); if (save_p->addr != save_addr) { /* We are pretty short on buffers. */ @@ -510,7 +510,7 @@ __big_keydata(hashp, bufp, key, val, set) int set; { key->size = collect_key(hashp, bufp, 0, val, set); - if (key->size == -1) + if (key->size == (size_t) -1) return (-1); key->data = (u_char *)hashp->tmp_key; return (0); |