0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-05-04 06:11:53 +00:00

libsql-sqlite3: Don't use pointer arithmetic

Let's be kind to Windows compiler.
This commit is contained in:
Pekka Enberg
2025-03-20 13:31:27 +02:00
parent 02ac846814
commit 9bd7387495

@ -7854,7 +7854,7 @@ int sqlite3PagerWalInsert(Pager *pPager, unsigned int iFrame, void *pBuf, unsign
return rc;
}
int conflict = 0;
if (memcmp(pBuf+24, current, frame_len) != 0) {
if (memcmp((unsigned char*)pBuf+24, current, frame_len) != 0) {
conflict = 1;
}
if (pConflict) {