mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Moved declaration of int nPage; to top of block to silence picky compilers (MSVC). (CVS 5197)
FossilOrigin-Name: 120bffff747592f1ab6ed02713a712cc74c12528
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
** May you share freely, never taking more than you give.
|
||||
**
|
||||
*************************************************************************
|
||||
** $Id: btree.c,v 1.459 2008/06/07 08:58:22 danielk1977 Exp $
|
||||
** $Id: btree.c,v 1.460 2008/06/09 19:27:12 shane Exp $
|
||||
**
|
||||
** This file implements a external (disk-based) database using BTrees.
|
||||
** See the header comment on "btreeInt.h" for additional information.
|
||||
@@ -4107,8 +4107,8 @@ static int allocateBtreePage(
|
||||
|
||||
iPage = get4byte(&aData[8+closest*4]);
|
||||
if( !searchList || iPage==nearby ){
|
||||
*pPgno = iPage;
|
||||
int nPage;
|
||||
*pPgno = iPage;
|
||||
nPage = pagerPagecount(pBt->pPager);
|
||||
if( *pPgno>nPage ){
|
||||
/* Free page off the end of the file */
|
||||
|
Reference in New Issue
Block a user