diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-02-16 12:09:12 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-02-16 12:09:12 -0500 |
commit | 14fbff57e65c97b92c4f2d402183e31211701ffd (patch) | |
tree | 73b167c33dcae58a14018080f87394151e8992f4 /src | |
parent | e4a37fdb02452678fea08ee85c73180cbbd36e11 (diff) |
fix bug with legalized i64 rounded addition
Diffstat (limited to 'src')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index b401c1a5..5a92335e 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -542,7 +542,7 @@ function splitI64(value) { // be slightly higher than expected. And if we get 4294967296, that will turn into a 0 if put into a // HEAP32 or |0'd, etc. if (legalizedI64s) { - return [value + '>>>0', 'Math.min(Math.floor(' + value + '/4294967296), 4294967295)']; + return [value + '>>>0', 'Math.min(Math.floor((' + value + ')/4294967296), 4294967295)']; } else { return makeInlineCalculation(makeI64('VALUE>>>0', 'Math.min(Math.floor(VALUE/4294967296), 4294967295)'), value, 'tempBigIntP'); } |