diff options
| author | Damien George | 2014-04-10 17:22:19 +0000 |
|---|---|---|
| committer | Damien George | 2014-04-10 17:22:19 +0000 |
| commit | 069a35e3a56bc68571470c91d919f013d4b40650 (patch) | |
| tree | 47c28b4c59e5929a93b21a0c836ae19e9a2d91e8 /py/emitcpy.c | |
| parent | 190d1ba297621b7a266fdde8968d163fd5018f2f (diff) | |
py, compiler: Improve stack depth counting.
Much less of a hack now. Hopefully it's correct!
Diffstat (limited to 'py/emitcpy.c')
| -rw-r--r-- | py/emitcpy.c | 4 |
1 files changed, 2 insertions, 2 deletions
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]); } |
