We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56af0f3 commit f94b6abCopy full SHA for f94b6ab
src/parseTools.js
@@ -1354,8 +1354,11 @@ function convertPtrToIdx(ptr, accessWidth) {
1354
1355
let conversion;
1356
if (MEMORY64) {
1357
- if (MAXIMUM_MEMORY > MAX_MEMORY53) conversion = /^\d+$/.test(accessWidth) ? `${ptr} >>= ${accessWidth}n` : `${ptr} >>= BigInt(${accessWidth})`;
1358
- else conversion = `${ptr} = Number(${ptr}) / ${accessWidth}`;
+ if (MAXIMUM_MEMORY > MAX_MEMORY53) {
+ conversion = /^\d+$/.test(accessWidth) ? `${ptr} >>= ${accessWidth}n` : `${ptr} >>= BigInt(${accessWidth})`;
1359
+ } else {
1360
+ conversion = `${ptr} = Number(${ptr}) / ${accessWidth}`;
1361
+ }
1362
} else if (MAXIMUM_MEMORY > 2 * 1024 * 1024 * 1024) {
1363
conversion = `${ptr} >>>= ${accessWidth}`;
1364
} else {
0 commit comments