diff options
author | delphij <delphij@FreeBSD.org> | 2009-03-28 05:45:29 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-03-28 05:45:29 +0000 |
commit | 21b00fc42b2ab16bc19a270792a72971dc10973f (patch) | |
tree | 2886e758aa8188bda68aeabd1e440992d0ed0637 /lib/libc/db/recno/rec_put.c | |
parent | 64850243010a49e44236d9a5a79333f37746f169 (diff) | |
download | FreeBSD-src-21b00fc42b2ab16bc19a270792a72971dc10973f.zip FreeBSD-src-21b00fc42b2ab16bc19a270792a72971dc10973f.tar.gz |
Several signed/unsigned warning fixes.
Diffstat (limited to 'lib/libc/db/recno/rec_put.c')
-rw-r--r-- | lib/libc/db/recno/rec_put.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/db/recno/rec_put.c b/lib/libc/db/recno/rec_put.c index a6defc9..441cced 100644 --- a/lib/libc/db/recno/rec_put.c +++ b/lib/libc/db/recno/rec_put.c @@ -251,7 +251,7 @@ __rec_iput(BTREE *t, recno_t nrec, const DBT *data, u_int flags) * the offset array, shift the pointers up. */ nbytes = NRLEAFDBT(data->size); - if (h->upper - h->lower < nbytes + sizeof(indx_t)) { + if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) { status = __bt_split(t, h, NULL, data, dflags, nbytes, idx); if (status == RET_SUCCESS) ++t->bt_nrecs; |