Skip to content

Commit 752f457

Browse files
committed
libsql-sqlite3: Don't use pointer arithmetic
Let's be kind to Windows compiler.
1 parent 0175152 commit 752f457

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libsql-sqlite3/src/pager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7854,7 +7854,7 @@ int sqlite3PagerWalInsert(Pager *pPager, unsigned int iFrame, void *pBuf, unsign
78547854
return rc;
78557855
}
78567856
int conflict = 0;
7857-
if (memcmp(pBuf+24, current, frame_len) != 0) {
7857+
if (memcmp((unsigned char*)pBuf+24, current, frame_len) != 0) {
78587858
conflict = 1;
78597859
}
78607860
if (pConflict) {

0 commit comments

Comments
 (0)