aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-25 16:19:46 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-25 17:01:39 -0700
commitc92280c3557c9faf182ffac60de856f1de6770ac (patch)
tree9ed258016a6981fa73c3ca44e663f6dd2d9b606e /emscripten.py
parentc777166191bfef6d5ed3da760722ea9028983e6f (diff)
emit tempFloat global
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index 8829a50f..76056491 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -585,7 +585,7 @@ var asm = (function(global, env, buffer) {
var undef = 0;
var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0;
''' + ''.join(['''
- var tempRet%d = 0;''' % i for i in range(10)]) + '\n' + asm_global_funcs + '''
+ var tempRet%d = 0;''' % i for i in range(10)]) + '\n' + asm_global_funcs] + [' var tempFloat = %s;\n' % ('Math_fround(0)' if settings.get('FROUND') else '0.0')] + ['''
// EMSCRIPTEN_START_FUNCS
function stackAlloc(size) {
size = size|0;