diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-22 15:16:20 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-22 15:16:20 -0800 |
commit | d3a1aa4fce562114f8ffeb5df7e5a0427a9aad04 (patch) | |
tree | 3c4576c623af59bc5bbe956ef233fc3ebd4b82bd /src/modules.js | |
parent | 7aa630b73b7b895acad096fd59fd1145630a0806 (diff) |
fix function table type defs
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 435fb894..f33f302b 100644 --- a/src/modules.js +++ b/src/modules.js @@ -319,8 +319,8 @@ var Functions = { } for (var j = 1; j < t.length; j++) { args += (j > 1 ? ',' : '') + 'a' + j; - arg_coercions += 'a' + j + '=' + asmCoercion('a' + j, t[j] == 'f' ? 'float' : 'i32') + ';'; - call += (j > 1 ? ',' : '') + asmCoercion('a' + j, t[j] == 'f' ? 'float' : 'i32'); + arg_coercions += 'a' + j + '=' + asmCoercion('a' + j, t[j] != 'i' ? 'float' : 'i32') + ';'; + call += (j > 1 ? ',' : '') + asmCoercion('a' + j, t[j] != 'i' ? 'float' : 'i32'); } call += ')'; tables.pre += 'function ' + curr + '__wrapper(' + args + ') { ' + arg_coercions + ' ; ' + retPre + call + retPost + ' }\n'; |