mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Changes to silence compiler warnings under MSVC. (CVS 6613)
FossilOrigin-Name: df599237e1ca8b4f361477a712cf761aa1fac3df
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
** May you share freely, never taking more than you give.
|
||||
**
|
||||
*************************************************************************
|
||||
** $Id: btree.c,v 1.607 2009/05/04 19:01:26 danielk1977 Exp $
|
||||
** $Id: btree.c,v 1.608 2009/05/06 18:57:10 shane Exp $
|
||||
**
|
||||
** This file implements a external (disk-based) database using BTrees.
|
||||
** See the header comment on "btreeInt.h" for additional information.
|
||||
@@ -808,7 +808,7 @@ static u16 cellSizePtr(MemPage *pPage, u8 *pCell){
|
||||
}
|
||||
|
||||
assert( nSize==debuginfo.nSize );
|
||||
return nSize;
|
||||
return (u16)nSize;
|
||||
}
|
||||
#ifndef NDEBUG
|
||||
static u16 cellSize(MemPage *pPage, int iCell){
|
||||
@@ -4087,7 +4087,7 @@ int sqlite3BtreeMovetoUnpacked(
|
||||
void *pCellKey;
|
||||
u8 * const pCellBody = pCell - pPage->childPtrSize;
|
||||
sqlite3BtreeParseCellPtr(pPage, pCellBody, &pCur->info);
|
||||
nCell = pCur->info.nKey;
|
||||
nCell = (int)pCur->info.nKey;
|
||||
pCellKey = sqlite3Malloc( nCell );
|
||||
if( pCellKey==0 ){
|
||||
rc = SQLITE_NOMEM;
|
||||
|
Reference in New Issue
Block a user