diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-13 21:48:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-13 21:48:49 -0800 |
commit | 86889d526ac498d8b612af20e47f59de32d2cd99 (patch) | |
tree | 268073455796a6f7d07a9bdf7639a3657b77842f /emscripten.py | |
parent | fd718ccd54c73ebc4445228796de49e6c4302817 (diff) |
fix typo
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index a0c9efc0..28ef16da 100755 --- a/emscripten.py +++ b/emscripten.py @@ -913,7 +913,7 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None, Counter.i += 1 bad = 'b' + str(i) params = ','.join(['p%d' % p for p in range(len(sig)-1)]) - coerced_params = ','.join([shared.JS.make_coercion('p%d', sig[i+1], settings) % p for p in range(len(sig)-1)]) + coerced_params = ','.join([shared.JS.make_coercion('p%d', sig[p+1], settings) % p for p in range(len(sig)-1)]) coercions = ';'.join(['p%d = %s' % (p, shared.JS.make_coercion('p%d' % p, sig[p+1], settings)) for p in range(len(sig)-1)]) + ';' def make_func(name, code): return 'function %s(%s) { %s %s }' % (name, params, coercions, code) |