aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index aa1c37b1..7060dc3e 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1414,7 +1414,9 @@ function handleOverflow(text, bits) {
PGO ? ', "' + Debugging.getIdentifier() + '"' : ''
) + ')';
if (!correct) return text;
- if (bits <= 32) {
+ if (bits == 32) {
+ return '((' + text + ')|0)';
+ } else if (bits < 32) {
return '((' + text + ')&' + (Math.pow(2, bits) - 1) + ')';
} else {
return text; // We warned about this earlier