summaryrefslogtreecommitdiffstats
path: root/third_party/sqlite/tool/showdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/sqlite/tool/showdb.c')
-rw-r--r--third_party/sqlite/tool/showdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/sqlite/tool/showdb.c b/third_party/sqlite/tool/showdb.c
index b2ed562..26e7ea2 100644
--- a/third_party/sqlite/tool/showdb.c
+++ b/third_party/sqlite/tool/showdb.c
@@ -25,7 +25,7 @@ static print_page(int iPg){
int i, j;
aData = malloc(pagesize);
if( aData==0 ) out_of_memory();
- lseek(db, (iPg-1)*pagesize, SEEK_SET);
+ lseek(db, (iPg-1)*(long long int)pagesize, SEEK_SET);
read(db, aData, pagesize);
fprintf(stdout, "Page %d:\n", iPg);
for(i=0; i<pagesize; i += perLine){