Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: third_party/sqlite/src/src/recover.c

Issue 1248763003: Fix MSVC warning C4018 for sqlite. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/patches/0006-Virtual-table-supporting-recovery-of-corrupted-datab.patch ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/src/recover.c
diff --git a/third_party/sqlite/src/src/recover.c b/third_party/sqlite/src/src/recover.c
index c996d536b4735be1ee9ed531896094746c7de034..c91c88d66c309c8e607e749b77f218f3275531b3 100644
--- a/third_party/sqlite/src/src/recover.c
+++ b/third_party/sqlite/src/src/recover.c
@@ -1775,7 +1775,7 @@ static int recoverColumn(sqlite3_vtab_cursor *cur, sqlite3_context *ctx, int i){
FNENTRY();
- if( i>=pRecover->nCols ){
+ if( (unsigned)i>=pRecover->nCols ){
return SQLITE_ERROR;
}
@@ -2082,11 +2082,11 @@ static int recoverInit(
sqlite3_vtab **ppVtab, /* OUT: New virtual table */
char **pzErr /* OUT: Error message, if any */
){
- const unsigned kTypeCol = 4; /* First argument with column type info. */
- Recover *pRecover; /* Virtual table structure being created. */
- char *zDot; /* Any dot found in "db.table" backing. */
- u32 iRootPage; /* Root page of backing table. */
- char *zCreateSql; /* Schema of created virtual table. */
+ const int kTypeCol = 4; /* First argument with column type info. */
+ Recover *pRecover; /* Virtual table structure being created. */
+ char *zDot; /* Any dot found in "db.table" backing. */
+ u32 iRootPage; /* Root page of backing table. */
+ char *zCreateSql; /* Schema of created virtual table. */
int rc;
/* Require to be in the temp database. */
« no previous file with comments | « third_party/sqlite/patches/0006-Virtual-table-supporting-recovery-of-corrupted-datab.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698