summaryrefslogtreecommitdiff
path: root/dev-ada/gnatcoll-bindings/files/gnatcoll-bindings-23.0.0-py_3_11.patch
blob: e4c3960c236f79b07678c02e99315d1e90b75c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/python/python_support.c	2023-02-22 20:16:04.746476700 +0100
+++ b/python/python_support.c	2023-02-22 20:18:46.762891565 +0100
@@ -814,13 +814,13 @@
 PyCodeObject*
 ada_pyframe_get_code (PyFrameObject* obj)
 {
-   return obj->f_code;
+   return PyFrame_GetCode(obj);
 }
 
 PyFrameObject*
 ada_pyframe_get_back (PyFrameObject* obj)
 {
-   return obj->f_back;
+   return PyFrame_GetBack(obj);
 }
 
 PyObject*