Commit 04d05db2 authored by Damien George's avatar Damien George

py/vm: Fix bug with unwind jump popping the iterator from a for loop.

This patch fixes a regression introduced by
088740ec
parent 68e71eac
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment