diff options
author | dan <dan@noemail.net> | 2015-08-28 16:41:45 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2015-08-28 16:41:45 +0000 |
commit | 2798f0b54bf724f4919b1926cea9d1c47a74e01c (patch) | |
tree | 8a030ffd3d359c6826267a6c510a9be9e17aad06 /ext/rbu/sqlite3rbu.c | |
parent | 3b05828ea8a55ac69b19e2f0c36e410a2ceeea74 (diff) | |
download | sqlite-2798f0b54bf724f4919b1926cea9d1c47a74e01c.tar.gz sqlite-2798f0b54bf724f4919b1926cea9d1c47a74e01c.zip |
Fix compiler warnings in rbu code.
FossilOrigin-Name: 0fdc36fe35ae2fc8e9688fe6c53437f4d47502d9
Diffstat (limited to 'ext/rbu/sqlite3rbu.c')
-rw-r--r-- | ext/rbu/sqlite3rbu.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/rbu/sqlite3rbu.c b/ext/rbu/sqlite3rbu.c index 7c7480bcf..d76d2f4cc 100644 --- a/ext/rbu/sqlite3rbu.c +++ b/ext/rbu/sqlite3rbu.c @@ -489,7 +489,7 @@ static int rbuDeltaApply( /* ERROR: copy exceeds output file size */ return -1; } - if( ofst+cnt > lenSrc ){ + if( (int)(ofst+cnt) > lenSrc ){ /* ERROR: copy extends past end of input */ return -1; } @@ -504,7 +504,7 @@ static int rbuDeltaApply( /* ERROR: insert command gives an output larger than predicted */ return -1; } - if( cnt>lenDelta ){ + if( (int)cnt>lenDelta ){ /* ERROR: insert count exceeds size of delta */ return -1; } @@ -1117,7 +1117,7 @@ static void rbuTableType( } rbuTableType_end: { - int i; + unsigned int i; for(i=0; i<sizeof(aStmt)/sizeof(aStmt[0]); i++){ rbuFinalize(p, aStmt[i]); } @@ -1530,7 +1530,7 @@ static char *rbuObjIterGetSetlist( if( p->rc==SQLITE_OK ){ int i; - if( strlen(zMask)!=pIter->nTblCol ){ + if( (int)strlen(zMask)!=pIter->nTblCol ){ rbuBadControlError(p); }else{ const char *zSep = ""; @@ -3680,7 +3680,8 @@ static int rbuVfsOpen( rbuVfsShmMap, /* xShmMap */ rbuVfsShmLock, /* xShmLock */ rbuVfsShmBarrier, /* xShmBarrier */ - rbuVfsShmUnmap /* xShmUnmap */ + rbuVfsShmUnmap, /* xShmUnmap */ + 0, 0 /* xFetch, xUnfetch */ }; rbu_vfs *pRbuVfs = (rbu_vfs*)pVfs; sqlite3_vfs *pRealVfs = pRbuVfs->pRealVfs; |