summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-03-26 17:54:12 +0000
committerDamien George <damien.p.george@gmail.com>2015-03-26 17:54:12 +0000
commit51229afbded35a900215c83f482997a613efbbe7 (patch)
treeb1f3e4c50f2da585079fc90535a2c06b11cced65
parent4112590a602fa11b4d9a3df3ed5c55df56c0dc62 (diff)
downloadmicropython-51229afbded35a900215c83f482997a613efbbe7.tar.gz
micropython-51229afbded35a900215c83f482997a613efbbe7.zip
py: Increase fixed size of stack-info in native emitter.
This is a temporary fix.
-rw-r--r--py/emitnative.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/emitnative.c b/py/emitnative.c
index d16b919dc1..423b1684b6 100644
--- a/py/emitnative.c
+++ b/py/emitnative.c
@@ -564,8 +564,9 @@ STATIC void emit_native_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scop
// allocate memory for keeping track of the objects on the stack
// XXX don't know stack size on entry, and it should be maximum over all scopes
+ // XXX this is such a big hack and really needs to be fixed
if (emit->stack_info == NULL) {
- emit->stack_info_alloc = scope->stack_size + 50;
+ emit->stack_info_alloc = scope->stack_size + 200;
emit->stack_info = m_new(stack_info_t, emit->stack_info_alloc);
}