aboutsummaryrefslogtreecommitdiff
path: root/tools/js-optimizer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-05 14:38:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-05 14:38:29 -0700
commit1f6e53c51376b7fc3457b32a3a3eeca0844ddd50 (patch)
tree6adaa84815d499aafcae60afd21a43243ec8e33e /tools/js-optimizer.js
parent73153d7146aa1ee2493f42de55ddc2888d69873e (diff)
handle overflows when relocating heap offsets
Diffstat (limited to 'tools/js-optimizer.js')
-rw-r--r--tools/js-optimizer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index c5b21175..82942ce2 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -2817,7 +2817,7 @@ function relocate(ast) {
var other = node[3];
if (base === 0) return other;
if (other[0] == 'num') {
- other[1] += base;
+ other[1] = (other[1] + base)|0;
return other;
} else {
node[2] = ['num', base];