There was an error while loading. Please reload this page.
1 parent 080a596 commit 178153cCopy full SHA for 178153c
1 file changed
Python/assemble.c
@@ -128,7 +128,7 @@ assemble_emit_exception_table_entry(struct assembler *a, int start, int end,
128
assert(end > start);
129
int target = handler->h_offset;
130
int depth = handler->h_startdepth - 1;
131
- if (handler->h_preserve_lasti) {
+ if (handler->h_preserve_lasti > 0) {
132
depth -= 1;
133
}
134
assert(depth >= 0);
@@ -146,6 +146,7 @@ assemble_exception_table(struct assembler *a, instr_sequence *instrs)
146
int ioffset = 0;
147
_PyCompile_ExceptHandlerInfo handler;
148
handler.h_offset = -1;
149
+ handler.h_preserve_lasti = -1;
150
int start = -1;
151
for (int i = 0; i < instrs->s_used; i++) {
152
instruction *instr = &instrs->s_instrs[i];
0 commit comments