Skip to content
Snippets Groups Projects
Commit 04d05db2 authored by Damien George's avatar Damien George
Browse files

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

This patch fixes a regression introduced by
088740ec
parent 68e71eac
No related branches found
No related tags found
No related merge requests found
...@@ -690,8 +690,7 @@ unwind_jump:; ...@@ -690,8 +690,7 @@ unwind_jump:;
} }
ip = (const byte*)MP_OBJ_TO_PTR(POP()); // pop destination ip for jump ip = (const byte*)MP_OBJ_TO_PTR(POP()); // pop destination ip for jump
if (unum != 0) { if (unum != 0) {
// pop iter and iter_buf // pop the exhausted iterator
sp--;
sp -= MP_OBJ_ITER_BUF_NSLOTS; sp -= MP_OBJ_ITER_BUF_NSLOTS;
} }
DISPATCH_WITH_PEND_EXC_CHECK(); DISPATCH_WITH_PEND_EXC_CHECK();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment