summaryrefslogtreecommitdiff
path: root/dbm
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2001-10-09 13:58:29 +0000
committerwtc%netscape.com <devnull@localhost>2001-10-09 13:58:29 +0000
commit67646e03f9165a0185abe1acd2ebdccfe1f164ab (patch)
tree932536527fa0112714a8b791996b5abccd13526d /dbm
parent3b15460280daa60b14bb768f58b32fdb72fc8f91 (diff)
downloadnss-hg-67646e03f9165a0185abe1acd2ebdccfe1f164ab.tar.gz
A better way to fix compiler warnings (signed/unsigned comparison) that
looks closer to the original code.
Diffstat (limited to 'dbm')
-rw-r--r--dbm/src/h_bigkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbm/src/h_bigkey.c b/dbm/src/h_bigkey.c
index fe5d8f800..53a1a00f3 100644
--- a/dbm/src/h_bigkey.c
+++ b/dbm/src/h_bigkey.c
@@ -429,7 +429,7 @@ __big_return(
}
val->size = collect_data(hashp, bufp, (int)len, set_current);
- if ((val->size + 1) == 0) /* unsigned ints are not really negative */
+ if (val->size == (size_t)-1)
return (-1);
if (save_p->addr != save_addr) {
/* We are pretty short on buffers. */
@@ -515,7 +515,7 @@ __big_keydata(
int set)
{
key->size = collect_key(hashp, bufp, 0, val, set);
- if ((key->size + 1) == 0) /* same compile warning about comparing signed and unsigned */
+ if (key->size == (size_t)-1)
return (-1);
key->data = (uint8 *)hashp->tmp_key;
return (0);