diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-25 14:13:20 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-25 14:13:20 -0700 |
commit | 2a8b87bcc174a17390f0d3799de8a6d2d86c2820 (patch) | |
tree | 4d727c3fd7bdd70d54c21209fda609664b76922d /src/parseTools.js | |
parent | cba6d823fc2db9400621325ea0a87c1a3f3a913f (diff) |
simplify fround initializer
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 77925876..a6f2e35e 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1198,9 +1198,8 @@ function asmEnsureFloat(value, type) { // ensures that a float type has either 5 function asmInitializer(type, impl) { if (type in Runtime.FLOAT_TYPES) { - var ret = RUNNING_JS_OPTS ? '+0' : '.0'; - if (FROUND && type === 'float') ret = 'Math_fround(' + ret + ')'; - return ret; + if (FROUND && type === 'float') return 'Math_fround(0)'; + return RUNNING_JS_OPTS ? '+0' : '.0'; } else { return '0'; } |