diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-29 14:38:33 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-29 14:38:33 -0700 |
commit | 7b44c1589112d5f3df207b1fee5d19c49dab9cc9 (patch) | |
tree | eeea7c47c3f0c74abaeb7b03355e2991948c1e5f /src/modules.js | |
parent | 2f2f3ca9fbbe5906bb68aa56edf7eca192ac9dc1 (diff) |
cast to double before float in function pointer wrappers
Diffstat (limited to 'src/modules.js')
-rw-r--r-- | src/modules.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.js b/src/modules.js index dd622bee..b8301d71 100644 --- a/src/modules.js +++ b/src/modules.js @@ -366,8 +366,8 @@ var Functions = { } else if (t[0] === 'd') { retPre = 'return +'; } else { - retPre = 'return Math_fround('; - retPost = ')'; + retPre = 'return Math_fround(+('; + retPost = '))'; } } for (var j = 1; j < t.length; j++) { |