Skip to content

Commit

Permalink
heapu8 for update_hook
Browse files Browse the repository at this point in the history
  • Loading branch information
tantaman committed Nov 29, 2023
1 parent 8683591 commit d733d83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ crsqlite-extra: $(sqlite3.extra.c)
.PHONY: clean
clean:
rm -rf dist dist-xl debug tmp
rm *.o
rm -f *.o

.PHONY: spotless
spotless:
Expand Down
2 changes: 1 addition & 1 deletion src/libfunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const fn_methods = {

_jsUpdateHook = function(pApp, updateType, dbName, tblName, lo32, hi32) {
const f = mapIdToFunction.get(pApp);
const heap = HEAP8;
const heap = HEAPU8;
const rowid = (BigInt(hi32) << 32n) | (BigInt(lo32) & 0xffffffffn);
f(updateType, pullCstr(heap, dbName), pullCstr(heap, tblName), rowid);
}
Expand Down

0 comments on commit d733d83

Please sign in to comment.