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/btree/bt_split.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/btree/bt_split.c')
-rw-r--r-- | lib/libc/db/btree/bt_split.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/db/btree/bt_split.c b/lib/libc/db/btree/bt_split.c index 6ae3ce4..18cd0ed 100644 --- a/lib/libc/db/btree/bt_split.c +++ b/lib/libc/db/btree/bt_split.c @@ -205,7 +205,7 @@ __bt_split(BTREE *t, PAGE *sp, const DBT *key, const DBT *data, int flags, } /* Split the parent page if necessary or shift the indices. */ - if (h->upper - h->lower < nbytes + sizeof(indx_t)) { + if ((u_int32_t)(h->upper - h->lower) < nbytes + sizeof(indx_t)) { sp = h; h = h->pgno == P_ROOT ? bt_root(t, h, &l, &r, &skip, nbytes) : |