Skip to content

Commit efde111

Browse files
committed
review comment
1 parent 593d621 commit efde111

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Objects/longobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3616,7 +3616,7 @@ long_richcompare(PyObject *self, PyObject *other, int op)
36163616
}
36173617

36183618
static inline int
3619-
_PyLong_IsSmallInt(PyObject *self)
3619+
compact_int_is_small(PyObject *self)
36203620
{
36213621
PyLongObject *pylong = (PyLongObject *)self;
36223622
assert(_PyLong_IsCompact(pylong));
@@ -3636,7 +3636,7 @@ _PyLong_ExactDealloc(PyObject *self)
36363636
assert(PyLong_CheckExact(self));
36373637
if (_PyLong_IsCompact((PyLongObject *)self)) {
36383638
#ifndef Py_GIL_DISABLED
3639-
if (_PyLong_IsSmallInt(self)) {
3639+
if (compact_int_is_small(self)) {
36403640
// See PEP 683, section Accidental De-Immortalizing for details
36413641
_Py_SetImmortal(self);
36423642
return;
@@ -3653,7 +3653,7 @@ long_dealloc(PyObject *self)
36533653
{
36543654
assert(self);
36553655
if (_PyLong_IsCompact((PyLongObject *)self)) {
3656-
if (_PyLong_IsSmallInt(self)) {
3656+
if (compact_int_is_small(self)) {
36573657
/* This should never get called, but we also don't want to SEGV if
36583658
* we accidentally decref small Ints out of existence. Instead,
36593659
* since small Ints are immortal, re-set the reference count.

0 commit comments

Comments
 (0)