We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb33989 commit d411467Copy full SHA for d411467
Doc/whatsnew/3.11.rst
@@ -411,7 +411,7 @@ Porting to Python 3.11
411
#if PY_VERSION_HEX < 0x030900A4 && !defined(Py_SET_TYPE)
412
static inline void _Py_SET_TYPE(PyObject *ob, PyTypeObject *type)
413
{ ob->ob_type = type; }
414
- #define Py_SET_TYPE(ob, type) _Py_SET_TYPE(_PyObject_CAST(ob), type)
+ #define Py_SET_TYPE(ob, type) _Py_SET_TYPE((PyObject*)(ob), type)
415
#endif
416
417
(Contributed by Victor Stinner in :issue:`39573`.)
0 commit comments