aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emlink.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/emlink.py b/emlink.py
index a7ecb236..02d1fd89 100644
--- a/emlink.py
+++ b/emlink.py
@@ -280,7 +280,8 @@ class AsmModule():
ret = main + side
size = 2
while size < len(ret): size *= 2
- ret = ret + ['0']*(size - len(ret))
+ aborter = ret[1] # we can assume odd indexes have an aborting function with the right signature
+ ret = ret + [aborter]*(size - len(ret))
assert len(ret) == size
f_sizes[table] = size
return '[' + ','.join(ret) + ']'