diff options
author | drh <drh@noemail.net> | 2008-12-10 21:19:56 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-12-10 21:19:56 +0000 |
commit | 1bd10f8a0063bcbcb75b99f48e70ae312e145aae (patch) | |
tree | 457c8297dbebfb90dcbb5af39ed8858cfc73be48 /src/memjournal.c | |
parent | 00c586a23885f14f39bb35f7c6167f0bdc62f391 (diff) | |
download | sqlite-1bd10f8a0063bcbcb75b99f48e70ae312e145aae.tar.gz sqlite-1bd10f8a0063bcbcb75b99f48e70ae312e145aae.zip |
Additional work at eliminating silly compiler warnings. (CVS 6010)
FossilOrigin-Name: ea01d43788a75e39c7f03c22681d1a338d52cf0e
Diffstat (limited to 'src/memjournal.c')
-rw-r--r-- | src/memjournal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/memjournal.c b/src/memjournal.c index bd91a3e15..d588e8ec8 100644 --- a/src/memjournal.c +++ b/src/memjournal.c @@ -14,7 +14,7 @@ ** The in-memory rollback journal is used to journal transactions for ** ":memory:" databases and when the journal_mode=MEMORY pragma is used. ** -** @(#) $Id: memjournal.c,v 1.6 2008/12/10 19:26:24 drh Exp $ +** @(#) $Id: memjournal.c,v 1.7 2008/12/10 21:19:57 drh Exp $ */ #include "sqliteInt.h" @@ -91,7 +91,7 @@ static int memjrnlRead( pChunk = p->readpoint.pChunk; } - iChunkOffset = (iOfst%JOURNAL_CHUNKSIZE); + iChunkOffset = (int)(iOfst%JOURNAL_CHUNKSIZE); do { int iSpace = JOURNAL_CHUNKSIZE - iChunkOffset; int nCopy = MIN(nRead, (JOURNAL_CHUNKSIZE - iChunkOffset)); @@ -127,7 +127,7 @@ static int memjrnlWrite( while( nWrite>0 ){ FileChunk *pChunk = p->endpoint.pChunk; - int iChunkOffset = p->endpoint.iOffset%JOURNAL_CHUNKSIZE; + int iChunkOffset = (int)(p->endpoint.iOffset%JOURNAL_CHUNKSIZE); int iSpace = MIN(nWrite, JOURNAL_CHUNKSIZE - iChunkOffset); if( iChunkOffset==0 ){ |