diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-15 11:07:40 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-15 11:07:40 -0800 |
commit | a21017cfe7ca199a6a51511ee65aea63f011446b (patch) | |
tree | 4d1b493bb716c09df0db4b539ca17a9e8619f69b /src/parseTools.js | |
parent | a2045a75166b09bc367236a21aacddb869a1f1fe (diff) |
make sure to not emit bools in i64Math commands
Diffstat (limited to 'src/parseTools.js')
-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 4e95164e..3ff5e710 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1891,7 +1891,7 @@ function processMathop(item) { function i64PreciseOp(type, lastArg) { Types.preciseI64MathUsed = true; return finish(['(i64Math' + (ASM_JS ? '_' : '.') + type + '(' + asmCoercion(low1, 'i32') + ',' + asmCoercion(high1, 'i32') + ',' + asmCoercion(low2, 'i32') + ',' + asmCoercion(high2, 'i32') + - (lastArg ? ',' + asmCoercion(lastArg, 'i32') : '') + '),' + makeGetValue('tempDoublePtr', 0, 'i32') + ')', makeGetValue('tempDoublePtr', Runtime.getNativeTypeSize('i32'), 'i32')]); + (lastArg ? ',' + asmCoercion(+lastArg, 'i32') : '') + '),' + makeGetValue('tempDoublePtr', 0, 'i32') + ')', makeGetValue('tempDoublePtr', Runtime.getNativeTypeSize('i32'), 'i32')]); } switch (op) { // basic integer ops |