about summary refs log tree commit diff
path: root/db/btree/bt_split.c
diff options
context:
space:
mode:
Diffstat (limited to 'db/btree/bt_split.c')
-rw-r--r--db/btree/bt_split.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/btree/bt_split.c b/db/btree/bt_split.c
index 1646d82159..d01db4ad9d 100644
--- a/db/btree/bt_split.c
+++ b/db/btree/bt_split.c
@@ -215,7 +215,8 @@ __bt_split(t, sp, key, data, flags, ilen, argskip)
 		}
 
 		/* 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) :