diff options
-rw-r--r-- | src/parseTools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 4a2ff3a8..5473ff37 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -687,7 +687,7 @@ function getHeapOffset(offset, type) { } // See makeSetValue -function makeGetValue(ptr, pos, type, noNeedFirst, unsigned) { +function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore) { if (isStructType(type)) { var typeData = Types.types[type]; var ret = []; @@ -701,7 +701,7 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned) { if (SAFE_HEAP) { if (type !== 'null' && type[0] !== '#') type = '"' + safeQuote(type) + '"'; if (type[0] === '#') type = type.substr(1); - return 'SAFE_HEAP_LOAD(' + offset + ', ' + type + ', ' + (!!unsigned+0) + ', ' + (!checkSafeHeap()+0) + ')'; + return 'SAFE_HEAP_LOAD(' + offset + ', ' + type + ', ' + (!!unsigned+0) + ', ' + ((!checkSafeHeap() || ignore)|0) + ')'; } else { return makeGetSlabs(ptr, type, false, unsigned)[0] + '[' + getHeapOffset(offset, type) + ']'; } |