aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2015-05-26 17:33:30 +0000
committerdan <dan@noemail.net>2015-05-26 17:33:30 +0000
commit633d0753abf33be39d13202f5b37f8b96cd16d05 (patch)
treef247b8d37107505f31b32ade993bd0885f2335b5 /src/btree.c
parentadd08049434efb5486828f4ec98415a5dce8a4b5 (diff)
downloadsqlite-633d0753abf33be39d13202f5b37f8b96cd16d05.tar.gz
sqlite-633d0753abf33be39d13202f5b37f8b96cd16d05.zip
Add a cast to one side of the test added by [97806a78] in order to avoid a signed/unsigned comparison warning.
FossilOrigin-Name: 5b46d2a78a45de4176b666bfc89c2aaa6f083662
Diffstat (limited to 'src/btree.c')
-rw-r--r--src/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index ff12b4bea..e0b956587 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -1343,7 +1343,7 @@ static int allocateSpace(MemPage *pPage, int nByte, int *pIdx){
** However, that integer is too large to be stored in a 2-byte unsigned
** integer, so a value of 0 is used in its place. */
top = get2byteNotZero(&data[hdr+5]);
- if( gap>top || top>pPage->pBt->usableSize ) return SQLITE_CORRUPT_BKPT;
+ if( gap>top || (u32)top>pPage->pBt->usableSize ) return SQLITE_CORRUPT_BKPT;
/* If there is enough space between gap and top for one more cell pointer
** array entry offset, and if the freelist is not empty, then search the