aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-02-19 22:44:16 -0800
committerAlon Zakai <azakai@mozilla.com>2011-02-19 22:44:16 -0800
commit8855d03cc54dda19e6cd4a885c0e1171f7a7d126 (patch)
tree79977e6ab50627fa098f6e7beea04666580ccc7b /src/jsifier.js
parentf81feaff967ffdd8212ffe2da8579c4734fc7cbb (diff)
use line-specific corrections in zlib test
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index f3e55a39..73774373 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -769,7 +769,7 @@ function JSify(data, functionsOnly, givenTypes, givenFunctions, givenGlobalVaria
// TODO: figure out something here along the lines of return '(' + Math.pow(2, 32) + '+((' + value + ')|0))';
}
}
- return op + 'Sign(' + value + ', ' + bits + ')';
+ return op + 'Sign(' + value + ', ' + bits + ', ' + correctSpecificSign() + ')'; // If we are correcting a specific sign here, do not check for it
} else {
return value;
}
@@ -778,7 +778,7 @@ function JSify(data, functionsOnly, givenTypes, givenFunctions, givenGlobalVaria
function handleOverflow(text, bits) {
if (!bits) return text;
if (bits <= 32 && correctOverflows()) text = '(' + text + ')&' + (Math.pow(2, bits) - 1);
- if (!CHECK_OVERFLOWS) return text;
+ if (!CHECK_OVERFLOWS || correctSpecificOverflow()) return text; // If we are correcting a specific overflow here, do not check for it
return 'CHECK_OVERFLOW(' + text + ', ' + bits + ')';
}