Skip to content

Commit 6014587

Browse files
Update object.c
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 422edf9 commit 6014587

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/_testcapi/object.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ pyobject_enable_deferred_refcount(PyObject *self, PyObject *obj)
135135
static PyObject *
136136
is_immortal(PyObject *self, PyObject *op)
137137
{
138-
return PyBool_FromLong(PyUnstable_IsImmortal(op));
138+
NULLABLE(op)
139+
return PyLong_FromLong(PyUnstable_IsImmortal(op));
139140
}
140141

141142

0 commit comments

Comments
 (0)