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

Unified Diff: third_party/sqlite/amalgamation/sqlite3.c

Side-by-side diff isn't available for this file because of its large size.
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:
Download patch
« no previous file with comments | « no previous file | third_party/sqlite/patches/0006-Virtual-table-supporting-recovery-of-corrupted-datab.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/amalgamation/sqlite3.c
diff --git a/third_party/sqlite/amalgamation/sqlite3.c b/third_party/sqlite/amalgamation/sqlite3.c
index 82dc78033a0bc2a9e852e1dac761c877d5c1f7e5..c6747fdf63e53f547d58d7b52c8c90aed71cfdba 100644
--- a/third_party/sqlite/amalgamation/sqlite3.c
+++ b/third_party/sqlite/amalgamation/sqlite3.c
@@ -130692,7 +130692,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;
}
@@ -130999,11 +130999,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 | « no previous file | third_party/sqlite/patches/0006-Virtual-table-supporting-recovery-of-corrupted-datab.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698