diff options
Diffstat (limited to 'ext/misc/csv.c')
-rw-r--r-- | ext/misc/csv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/csv.c b/ext/misc/csv.c index 963e41cfe..09e970ee7 100644 --- a/ext/misc/csv.c +++ b/ext/misc/csv.c @@ -621,7 +621,7 @@ static int csvtabConnect( }else if( pNew->zData ){ pNew->iStart = (int)sRdr.iIn; }else{ - pNew->iStart = ftell(sRdr.in) - sRdr.nIn + sRdr.iIn; + pNew->iStart = (int)(ftell(sRdr.in) - sRdr.nIn + sRdr.iIn); } csv_reader_reset(&sRdr); rc = sqlite3_declare_vtab(db, CSV_SCHEMA); |