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

Unified Diff: third_party/sqlite/patches/0006-Virtual-table-supporting-recovery-of-corrupted-datab.patch

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/amalgamation/sqlite3.c ('k') | third_party/sqlite/src/src/recover.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/patches/0006-Virtual-table-supporting-recovery-of-corrupted-datab.patch
diff --git a/third_party/sqlite/patches/0006-Virtual-table-supporting-recovery-of-corrupted-datab.patch b/third_party/sqlite/patches/0006-Virtual-table-supporting-recovery-of-corrupted-datab.patch
index 24fcbcf6759996d5b14a9dcd70cb8fe042195369..eb1cffa5b6d566a5effe75be2bbaa889b6c9f939 100644
--- a/third_party/sqlite/patches/0006-Virtual-table-supporting-recovery-of-corrupted-datab.patch
+++ b/third_party/sqlite/patches/0006-Virtual-table-supporting-recovery-of-corrupted-datab.patch
@@ -1891,7 +1891,7 @@ index 0000000..c996d53
+
+ FNENTRY();
+
-+ if( i>=pRecover->nCols ){
++ if( (unsigned)i>=pRecover->nCols ){
+ return SQLITE_ERROR;
+ }
+
@@ -2198,11 +2198,11 @@ index 0000000..c996d53
+ 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/amalgamation/sqlite3.c ('k') | third_party/sqlite/src/src/recover.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698