1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix harmless compiler warning in assert statement.

FossilOrigin-Name: 7097716caed9d4aef49c7e766e41ea74abf5967f
This commit is contained in:
mistachkin
2015-06-26 03:12:27 +00:00
parent 39065c60b3
commit 68cdd0eda2
3 changed files with 9 additions and 9 deletions

View File

@@ -1442,7 +1442,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 = get2byte(&data[hdr+5]);
assert( top<=pPage->pBt->usableSize ); /* Prevent by getAndInitPage() */
assert( top<=(int)pPage->pBt->usableSize ); /* Prevent by getAndInitPage() */
if( gap>top ){
if( top==0 && pPage->pBt->usableSize==65536 ){
top = 65536;