There was an error while loading. Please reload this page.
1 parent 9abc7de commit 33f075aCopy full SHA for 33f075a
1 file changed
Include/refcount.h
@@ -494,7 +494,7 @@ static inline Py_ALWAYS_INLINE void Py_DECREF(PyObject *op)
494
do { \
495
PyObject **_tmp_op_ptr = _Py_CAST(PyObject**, &(op)); \
496
PyObject *_tmp_old_op = (*_tmp_op_ptr); \
497
- if (_tmp_old_op != NULL) { \
+ if (_tmp_old_op != _Py_NULL) { \
498
PyObject *_null_ptr = _Py_NULL; \
499
memcpy(_tmp_op_ptr, &_null_ptr, sizeof(PyObject*)); \
500
Py_DECREF(_tmp_old_op); \
0 commit comments