kopia lustrzana https://github.com/micropython/micropython
py/vm: Fix bug with unwind jump popping the iterator from a for loop.
This patch fixes a regression introduced by
088740ecc4
pull/3110/head
rodzic
68e71eacb8
commit
04d05db27e
3
py/vm.c
3
py/vm.c
|
@ -690,8 +690,7 @@ unwind_jump:;
|
|||
}
|
||||
ip = (const byte*)MP_OBJ_TO_PTR(POP()); // pop destination ip for jump
|
||||
if (unum != 0) {
|
||||
// pop iter and iter_buf
|
||||
sp--;
|
||||
// pop the exhausted iterator
|
||||
sp -= MP_OBJ_ITER_BUF_NSLOTS;
|
||||
}
|
||||
DISPATCH_WITH_PEND_EXC_CHECK();
|
||||
|
|
Ładowanie…
Reference in New Issue