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

Fix some compiler warnings. (CVS 4196)

FossilOrigin-Name: 6cc15409ad6baefbe6e2214a4ac1cb3a0433f922
This commit is contained in:
drh
2007-08-05 23:52:05 +00:00
parent 19b26f37b7
commit e6e4d6bb1a
5 changed files with 14 additions and 21 deletions

View File

@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
** $Id: btree.c,v 1.393 2007/07/23 19:26:17 drh Exp $
** $Id: btree.c,v 1.394 2007/08/05 23:52:05 drh Exp $
**
** This file implements a external (disk-based) database using BTrees.
** See the header comment on "btreeInt.h" for additional information.
@@ -421,11 +421,13 @@ static int ptrmapGet(BtShared *pBt, Pgno key, u8 *pEType, Pgno *pPgno){
*/
#define findCell(pPage, iCell) \
((pPage)->aData + get2byte(&(pPage)->aData[(pPage)->cellOffset+2*(iCell)]))
#ifdef SQLITE_TEST
u8 *sqlite3BtreeFindCell(MemPage *pPage, int iCell){
assert( iCell>=0 );
assert( iCell<get2byte(&pPage->aData[pPage->hdrOffset+3]) );
return findCell(pPage, iCell);
}
#endif
/*
** This a more complex version of sqlite3BtreeFindCell() that works for