Skip to content

Commit

Permalink
Fix failing build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity committed Nov 6, 2024
1 parent 517b7f8 commit 6276ae5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,9 +1104,10 @@ dummy_func(
(Py_TYPE(receiver_o) == &PyGen_Type || Py_TYPE(receiver_o) == &PyCoro_Type) &&
((PyGenObject *)receiver_o)->gi_frame_state < FRAME_EXECUTING)
{
_PyInterpreterFrame *gen_frame;
PyGenObject *gen = (PyGenObject *)receiver_o;
Py_BEGIN_CRITICAL_SECTION(gen);
_PyInterpreterFrame *gen_frame = &gen->gi_iframe;
gen_frame = &gen->gi_iframe;
STACK_SHRINK(1);
_PyFrame_StackPush(gen_frame, v);
gen->gi_frame_state = FRAME_EXECUTING;
Expand Down
3 changes: 2 additions & 1 deletion Python/generated_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6276ae5

Please sign in to comment.