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 155c44b commit b1e2a33Copy full SHA for b1e2a33
Include/refcount.h
@@ -287,7 +287,7 @@ static inline Py_ALWAYS_INLINE void Py_INCREF(PyObject *op)
287
}
288
#elif SIZEOF_VOID_P > 4
289
PY_UINT32_T cur_refcnt = op->ob_refcnt;
290
- if (((int32_t)cur_refcnt) < 0) {
+ if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) < 0) {
291
// the object is immortal
292
_Py_INCREF_IMMORTAL_STAT_INC();
293
return;
0 commit comments