diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 873fc041e..0bb9feef0 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -1271,7 +1271,7 @@ int sqlite3UnixSyncDirectory(const char *zDirname){ static int unixTruncate(OsFile *id, i64 nByte){ int rc; assert( id ); - rc = ftruncate(((unixFile*)id)->h, nByte); + rc = ftruncate(((unixFile*)id)->h, (off_t)nByte); SimulateIOError( rc=1 ); if( rc ){ return SQLITE_IOERR_TRUNCATE; |