1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Add a cast to i64 for an integer in an sqlite3OsWrite() offset

calculation.  The cast is not strictly necessary, but it helps human readers
see that the code is correct.

FossilOrigin-Name: 7564ff1ba2c2fba89106d1aa06cc5379e752f119f22370f2f155f24cc698dec6
This commit is contained in:
drh
2023-10-30 19:03:17 +00:00
parent 383295eb17
commit f3f0bd2155
3 changed files with 8 additions and 8 deletions

View File

@@ -6593,7 +6593,7 @@ int sqlite3PagerCommitPhaseOne(
int szPage = (int)pPager->pageSize;
memset(pTmp, 0, szPage);
rc = sqlite3OsWrite(pPager->fd, pTmp, szPage,
(pPager->dbSize*pPager->pageSize)-szPage);
((i64)pPager->dbSize*pPager->pageSize)-szPage);
}
if( rc==SQLITE_OK ){
rc = sqlite3OsFileControl(fd, SQLITE_FCNTL_COMMIT_ATOMIC_WRITE, 0);