Skip to content

Commit fa099c1

Browse files
authored
Perform wasm64 offset calculations at build time. NFC (#19976)
1 parent 7b9f1c3 commit fa099c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parseTools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ function getHeapOffset(offset, type) {
295295
const sz = getNativeTypeSize(type);
296296
const shifts = Math.log(sz) / Math.LN2;
297297
if (MEMORY64 == 1) {
298-
return `((${offset})/2**${shifts})`;
298+
return `((${offset})/${2 ** shifts})`;
299299
} else {
300300
return `((${offset})>>${shifts})`;
301301
}

0 commit comments

Comments
 (0)