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

Unified Diff: third_party/sqlite/src/tool/showdb.c

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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/src/tool/run-speed-test.sh ('k') | third_party/sqlite/src/tool/showstat4.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/tool/showdb.c
diff --git a/third_party/sqlite/src/tool/showdb.c b/third_party/sqlite/src/tool/showdb.c
index 06cd36cd2c86c552a44ceff802af8265a93dd81d..d51a2fd83db4b1d9fca21fd55a34df0f357db5e9 100644
--- a/third_party/sqlite/src/tool/showdb.c
+++ b/third_party/sqlite/src/tool/showdb.c
@@ -151,7 +151,7 @@ static unsigned char *fileRead(sqlite3_int64 ofst, int nByte){
exit(1);
}
}else{
- lseek(g.dbfd, ofst, SEEK_SET);
+ lseek(g.dbfd, (long)ofst, SEEK_SET);
got = read(g.dbfd, aData, nByte);
if( got>0 && got<nByte ) memset(aData+got, 0, nByte-got);
}
@@ -1098,7 +1098,7 @@ int main(int argc, char **argv){
sqlite3_free(zPgSz);
printf("Pagesize: %d\n", g.pagesize);
- g.mxPage = (szFile+g.pagesize-1)/g.pagesize;
+ g.mxPage = (int)((szFile+g.pagesize-1)/g.pagesize);
printf("Available pages: 1..%d\n", g.mxPage);
if( nArg==2 ){
« no previous file with comments | « third_party/sqlite/src/tool/run-speed-test.sh ('k') | third_party/sqlite/src/tool/showstat4.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698