mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
gh-91321: Fix _PyObject_EXTRA_INIT for C++ (#92396)
In C++, the _PyObject_EXTRA_INIT macro now uses nullptr, rather than 0, to initialize the _ob_next and _ob_prev members of the PyObject structure. Fix test_cppext failure when Python is built with ./configure --with-trace-refs.
This commit is contained in:
parent
5fbaf80057
commit
c33d67c450
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ whose size is determined when the object is allocated.
|
||||||
PyObject *_ob_next; \
|
PyObject *_ob_next; \
|
||||||
PyObject *_ob_prev;
|
PyObject *_ob_prev;
|
||||||
|
|
||||||
#define _PyObject_EXTRA_INIT 0, 0,
|
#define _PyObject_EXTRA_INIT _Py_NULL, _Py_NULL,
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# define _PyObject_HEAD_EXTRA
|
# define _PyObject_HEAD_EXTRA
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue