aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6
diff options
context:
space:
mode:
authorChristian Tismer <[email protected]>2025-05-21 18:30:32 +0200
committerChristian Tismer <[email protected]>2025-05-22 12:01:29 +0200
commita3d52a77900853d595dc6e4eb906a8e335d954fc (patch)
treefb774b79a452261bf72bc9551c60b82f9b691d12 /sources/shiboken6
parent80f3424df9c54e1aa7ef1bf8654e5d654120b8b6 (diff)
shiboken: fix windows glitch on limited-api=no
This bug was probably caused by a change to AutoDecref and no complete testing. Observed on Python 3.11 . Task-number: PYSIDE-2221 Pick-to: 6.9 Change-Id: Ied0a2c37cbbd913d539bacef7b9a957c87b5fd3d Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'sources/shiboken6')
-rw-r--r--sources/shiboken6/libshiboken/bindingmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/libshiboken/bindingmanager.cpp b/sources/shiboken6/libshiboken/bindingmanager.cpp
index 25cc5c00a..c8874553f 100644
--- a/sources/shiboken6/libshiboken/bindingmanager.cpp
+++ b/sources/shiboken6/libshiboken/bindingmanager.cpp
@@ -387,9 +387,9 @@ PyObject *BindingManager::getOverride(SbkObject *wrapper, PyObject *pyMethodName
// crude check for them.
// PYSIDE-535: This macro is redefined in a compatible way in pep384
if (PyMethod_Check(method) != 0) {
- if (PyMethod_GET_SELF(method) != obWrapper)
+ if (PyMethod_Self(method) != obWrapper)
return nullptr;
- function = PyMethod_GET_FUNCTION(method);
+ function = PyMethod_Function(method);
} else if (isCompiledMethod(method)) {
Shiboken::AutoDecRef im_self(PyObject_GetAttr(method, PyName::im_self()));
// Not retaining a reference inline with what PyMethod_GET_SELF does.