diff options
author | drh <drh@noemail.net> | 2011-01-25 18:30:51 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-01-25 18:30:51 +0000 |
commit | 1e4040a4b46d6b5242985d6f7ecb51b7847789e3 (patch) | |
tree | f494d4059f9660928b4c06de6aa6eafa6addc8c3 /src | |
parent | 4d26d585d6167c933bfc596e1cece107cb639871 (diff) | |
download | sqlite-1e4040a4b46d6b5242985d6f7ecb51b7847789e3.tar.gz sqlite-1e4040a4b46d6b5242985d6f7ecb51b7847789e3.zip |
Fix new compiler warnings in pcache1.c that were introduced by the recent
performance enhancement patches of [e14649301138b684].
FossilOrigin-Name: c17703ec1e604934f8bd5b1f66f34b19d17a6d1f
Diffstat (limited to 'src')
-rw-r--r-- | src/pcache1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcache1.c b/src/pcache1.c index 50765a2fa..93435fecd 100644 --- a/src/pcache1.c +++ b/src/pcache1.c @@ -672,7 +672,7 @@ static int pcache1Pagecount(sqlite3_pcache *p){ ** 5. Otherwise, allocate and return a new page buffer. */ static void *pcache1Fetch(sqlite3_pcache *p, unsigned int iKey, int createFlag){ - unsigned int nPinned; + int nPinned; PCache1 *pCache = (PCache1 *)p; PGroup *pGroup; PgHdr1 *pPage = 0; @@ -713,7 +713,7 @@ static void *pcache1Fetch(sqlite3_pcache *p, unsigned int iKey, int createFlag){ assert( pCache->mxPinned == pCache->nMax*9/10 ); if( createFlag==1 && ( nPinned>=pGroup->mxPinned - || nPinned>=pCache->mxPinned + || nPinned>=(int)pCache->mxPinned || pcache1UnderMemoryPressure(pCache) )){ goto fetch_out; |