aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-18 11:33:21 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-18 11:33:21 -0800
commit54ef788e6c12facf6927653f65b9e8666b8d9bea (patch)
treea2af9369bc44b266795c4c102e2b0973257266a3 /emscripten.py
parentcff9269c5d28f5ae92d0bf1684740b9f1a59c500 (diff)
fix dynCall float coercions
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 87ced613..f061cfaf 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -333,7 +333,7 @@ var i64Math_modulo = function(a, b, c, d, e) { i64Math.modulo(a, b, c, d, e) };
# function tables
def asm_coerce(value, sig):
if sig == 'v': return value
- return ('+' if sig == 'd' else '') + value + ('|0' if sig == 'i' else '')
+ return ('+' if sig == 'f' else '') + value + ('|0' if sig == 'i' else '')
function_tables = ['dynCall_' + table for table in last_forwarded_json['Functions']['tables']]
function_tables_impls = []