From 2a8b87bcc174a17390f0d3799de8a6d2d86c2820 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 25 Oct 2013 14:13:20 -0700 Subject: simplify fround initializer --- src/parseTools.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/parseTools.js') 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'; } -- cgit v1.2.3-18-g5258