From 069a35e3a56bc68571470c91d919f013d4b40650 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 10 Apr 2014 17:22:19 +0000 Subject: py, compiler: Improve stack depth counting. Much less of a hack now. Hopefully it's correct! --- py/emitcpy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/emitcpy.c') diff --git a/py/emitcpy.c b/py/emitcpy.c index ed475cf3c..6928e031b 100644 --- a/py/emitcpy.c +++ b/py/emitcpy.c @@ -482,14 +482,14 @@ STATIC void emit_cpy_with_cleanup(emit_t *emit) { } STATIC void emit_cpy_setup_except(emit_t *emit, uint label) { - emit_pre(emit, 6, 3); + emit_pre(emit, 0, 3); if (emit->pass == PASS_3) { printf("SETUP_EXCEPT %d\n", emit->label_offsets[label]); } } STATIC void emit_cpy_setup_finally(emit_t *emit, uint label) { - emit_pre(emit, 6, 3); + emit_pre(emit, 0, 3); if (emit->pass == PASS_3) { printf("SETUP_FINALLY %d\n", emit->label_offsets[label]); } -- cgit v1.2.3