From cf2846e05a399598f128db8106a87bc30a8f0c2c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 15 May 2013 18:53:01 -0700 Subject: fix separate table function pointer initial value --- emscripten.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emscripten.py') diff --git a/emscripten.py b/emscripten.py index bc112e4d..629bbe5f 100755 --- a/emscripten.py +++ b/emscripten.py @@ -314,7 +314,7 @@ def emscript(infile, settings, outfile, libraries=[], compiler_engine=None, sig = forwarded_json['Functions']['implementedFunctions'].get(indexed) or forwarded_json['Functions']['unimplementedFunctions'].get(indexed) assert sig, indexed if sig not in table_counters: - table_counters[sig] = 2 + table_counters[sig] = 2 + 2*settings['RESERVED_FUNCTION_POINTERS'] curr = table_counters[sig] table_counters[sig] += 2 else: -- cgit v1.2.3-18-g5258