From 86889d526ac498d8b612af20e47f59de32d2cd99 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 13 Dec 2013 21:48:49 -0800 Subject: fix typo --- emscripten.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emscripten.py') 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) -- cgit v1.2.3-18-g5258