aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-06-11 11:29:19 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-06-11 11:29:19 -0700
commit8e6f0e536b9fb15280e0c1bb74ced421a5072696 (patch)
treec11127a4249a090741e092546199d82c8086e955 /src
parentccab86082893ff9120bdfbe8be490cd43ecf2cf3 (diff)
fix operator precedence bug with overflow correction, improve dlmalloc test
Diffstat (limited to 'src')
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 167ba074..34187a68 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -989,7 +989,7 @@ function handleOverflow(text, bits) {
) + ')';
if (!correct) return text;
if (bits <= 32) {
- return '(' + text + ')&' + (Math.pow(2, bits) - 1);
+ return '((' + text + ')&' + (Math.pow(2, bits) - 1) + ')';
} else {
return text; // We warned about this earlier
}