Py3: properly port to Py3.11

This commit is contained in:
wmayer
2022-07-02 19:36:27 +02:00
parent fcdec28716
commit 6820e0a9ec

View File

@@ -63,7 +63,7 @@ PyObjectBase::PyObjectBase(void* p,PyTypeObject *T)
#if PY_VERSION_HEX < 0x030b0000
Py_TYPE(this) = T;
#else
Py_SET_TYPE(this, T);
this->ob_type = T;
#endif
_Py_NewReference(this);
#ifdef FC_LOGPYOBJECTS