diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2024-06-24 09:23:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 09:23:38 (GMT) |
commit | 65a12c559cbc13c2c5a4aa65c76310bd8d2051a7 (patch) | |
tree | b244c6b535201b29b5e5e1ecaede6bc89ad4170f /Python/frame.c | |
parent | c38e2f64d012929168dfef7363c9e48bd1a6c731 (diff) | |
download | cpython-65a12c559cbc13c2c5a4aa65c76310bd8d2051a7.zip cpython-65a12c559cbc13c2c5a4aa65c76310bd8d2051a7.tar.gz cpython-65a12c559cbc13c2c5a4aa65c76310bd8d2051a7.tar.bz2 |
gh-120834: fix type of *_iframe field in _PyGenObject_HEAD declaration (#120835)
Diffstat (limited to 'Python/frame.c')
-rw-r--r-- | Python/frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/frame.c b/Python/frame.c index 2bb1282..7299a39 100644 --- a/Python/frame.c +++ b/Python/frame.c @@ -112,7 +112,7 @@ _PyFrame_ClearExceptCode(_PyInterpreterFrame *frame) /* It is the responsibility of the owning generator/coroutine * to have cleared the enclosing generator, if any. */ assert(frame->owner != FRAME_OWNED_BY_GENERATOR || - _PyFrame_GetGenerator(frame)->gi_frame_state == FRAME_CLEARED); + _PyGen_GetGeneratorFromFrame(frame)->gi_frame_state == FRAME_CLEARED); // GH-99729: Clearing this frame can expose the stack (via finalizers). It's // crucial that this frame has been unlinked, and is no longer visible: assert(_PyThreadState_GET()->current_frame != frame); |