diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-08 16:03:01 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-08 16:03:01 -0800 |
commit | 0779c55c28f17d796f3f13962cfcac954e6cef59 (patch) | |
tree | 2eadadecd66edf1ced9c6294689bc0ba973b885c | |
parent | e30b32a8ca2ee129166e59b93ebec17f5063bab2 (diff) |
fix asmCoercion for aggregate types
-rw-r--r-- | src/parseTools.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 89267d10..d22f4415 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1018,10 +1018,10 @@ function asmCoercion(value, type) { if (!ASM_JS) return value; if (type == 'void') { return value; - } else if (isIntImplemented(type)) { - return '((' + value + ')|0)'; - } else { + } else if (type in Runtime.FLOAT_TYPES) { return '(+(' + value + '))'; + } else { + return '((' + value + ')|0)'; } } |