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

Minor changes to silence compiler warnings on various MSVC builds.

FossilOrigin-Name: 115c978b6bbc110119a1b2f178cc30b33aaa27ef
This commit is contained in:
shaneh
2010-03-09 14:41:12 +00:00
parent ed6adb447f
commit 1da207e676
6 changed files with 19 additions and 25 deletions

View File

@@ -5062,7 +5062,7 @@ static int clearCell(MemPage *pPage, unsigned char *pCell){
if( rc ) return rc;
}
if( (pOvfl || (pOvfl = btreePageLookup(pBt, ovflPgno)))
if( ( pOvfl || ((pOvfl = btreePageLookup(pBt, ovflPgno))!=0) )
&& sqlite3PagerPageRefcount(pOvfl->pDbPage)!=1
){
/* There is no reason any cursor should have an outstanding reference
@@ -5815,7 +5815,7 @@ static int balance_nonroot(
** buffer. It will be copied out again as soon as the aSpace[] buffer
** is allocated. */
if( pBt->secureDelete ){
int iOff = apDiv[i] - pParent->aData;
int iOff = SQLITE_PTR_TO_INT(apDiv[i]) - SQLITE_PTR_TO_INT(pParent->aData);
if( (iOff+szNew[i])>pBt->usableSize ){
rc = SQLITE_CORRUPT_BKPT;
memset(apOld, 0, (i+1)*sizeof(MemPage*));