Skip to content

Commit 58225e4

Browse files
committed
Get test right
1 parent 7371bac commit 58225e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/refcount.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static inline Py_ALWAYS_INLINE void Py_INCREF(PyObject *op)
308308
_Py_INCREF_STAT_INC();
309309
#ifdef Py_REF_DEBUG
310310
// Don't count the incref if the object is immortal.
311-
if (_Py_IsImmortal(op)) {
311+
if (!_Py_IsImmortal(op)) {
312312
_Py_INCREF_IncRefTotal();
313313
}
314314
#endif

0 commit comments

Comments
 (0)