Skip to content

Commit

Permalink
Stackless issue python#235: Fix an assertion failure caused by python…
Browse files Browse the repository at this point in the history
…#188

This commit fixes an assert statement, that could fail since python#188.
No functional change.
  • Loading branch information
Anselm Kruis committed Feb 12, 2021
1 parent 4b817a8 commit 5595eec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,8 @@ do { \
Py_DECREF(f2); \
if (SLP_PEEK_NEXT_FRAME(tstate) != f) { \
assert(f->f_execute == slp_eval_frame_value || f->f_execute == slp_eval_frame_noval || \
f->f_execute == slp_eval_frame_setup_with || f->f_execute == slp_eval_frame_with_cleanup); \
f->f_execute == slp_eval_frame_setup_with || f->f_execute == slp_eval_frame_with_cleanup || \
f->f_execute == slp_eval_frame_yield_from); \
if (f->f_execute == slp_eval_frame_noval) \
f->f_execute = slp_eval_frame_value; \
return (retval__); \
Expand Down

0 comments on commit 5595eec

Please sign in to comment.