Skip to content

Commit 13d5be0

Browse files
committed
Remove redundant check
1 parent c4bf588 commit 13d5be0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Include/refcount.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) {
158158
return;
159159
}
160160
#ifndef Py_GIL_DISABLED
161-
if (refcnt >= (Py_ssize_t)_Py_IMMORTAL_MINIMUM_REFCNT) {
162-
refcnt = _Py_IMMORTAL_INITIAL_REFCNT;
163-
}
164161
#if SIZEOF_VOID_P > 4
165162
ob->ob_refcnt = (PY_UINT32_T)refcnt;
166163
#else

0 commit comments

Comments
 (0)