aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2012-08-14 19:04:27 +0000
committerdrh <drh@noemail.net>2012-08-14 19:04:27 +0000
commit8b64b3977e2557848f7654e84de2e7af568dfd4a (patch)
tree858b2f45b395ba8a1d2f9bef1330fa98824cefa2 /src
parentec73930adc09d2e237b4f8cdf6e9d51a67ecb00f (diff)
downloadsqlite-8b64b3977e2557848f7654e84de2e7af568dfd4a.tar.gz
sqlite-8b64b3977e2557848f7654e84de2e7af568dfd4a.zip
Silence three harmless compiler warnings in vdbesort.c.
FossilOrigin-Name: a5431c86df442c6e6dfaeae8e8aa62b56d204e97
Diffstat (limited to 'src')
-rw-r--r--src/vdbesort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vdbesort.c b/src/vdbesort.c
index 63288cfa6..ba1e9f0f2 100644
--- a/src/vdbesort.c
+++ b/src/vdbesort.c
@@ -195,7 +195,7 @@ static int vdbeSorterIterRead(
int rc; /* sqlite3OsRead() return code */
/* Determine how many bytes of data to read. */
- nRead = p->iEof - p->iReadOff;
+ nRead = (int)(p->iEof - p->iReadOff);
if( nRead>p->nBuffer ) nRead = p->nBuffer;
assert( nRead>0 );
@@ -300,7 +300,7 @@ static int vdbeSorterIterNext(
rc = vdbeSorterIterVarint(db, pIter, &nRec);
if( rc==SQLITE_OK ){
pIter->nKey = (int)nRec;
- rc = vdbeSorterIterRead(db, pIter, nRec, &pIter->aKey);
+ rc = vdbeSorterIterRead(db, pIter, (int)nRec, &pIter->aKey);
}
return rc;
@@ -343,7 +343,7 @@ static int vdbeSorterIterInit(
if( iBuf ){
int nRead = nBuf - iBuf;
if( (iStart + nRead) > pSorter->iWriteOff ){
- nRead = pSorter->iWriteOff - iStart;
+ nRead = (int)(pSorter->iWriteOff - iStart);
}
rc = sqlite3OsRead(
pSorter->pTemp1, &pIter->aBuffer[iBuf], nRead, iStart