sip/sip-4.19.25-pyframe_getback.patch
cherry530 d8edfb8333 fix build error with python 3.11.4
Signed-off-by: cherry530 <707078654@qq.com>
2023-07-19 15:29:00 +08:00

14 lines
345 B
Diff

diff --git a/siplib/siplib.c b/siplib/siplib.c
index db52b68..8019e97 100644
--- a/siplib/siplib.c
+++ b/siplib/siplib.c
@@ -13747,7 +13747,7 @@ static struct _frame *sip_api_get_frame(int depth)
while (frame != NULL && depth > 0)
{
- frame = frame->f_back;
+ frame = PyFrame_GetBack(frame);
--depth;
}