aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-15 18:53:01 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-15 18:53:01 -0700
commitcf2846e05a399598f128db8106a87bc30a8f0c2c (patch)
tree692db0e17a6f7a5817857169430ed29a184c0b91 /emscripten.py
parentee3fa5ad0ff079a0f8f4f86a68b8b5de5a29aed4 (diff)
fix separate table function pointer initial value
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 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: