Skip to content

Commit d8c318d

Browse files
committed
avoid warnings in release builds by using Py_DEBUG
1 parent a82a6ab commit d8c318d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Objects/longobject.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3611,6 +3611,8 @@ long_richcompare(PyObject *self, PyObject *other, int op)
36113611
Py_RETURN_RICHCOMPARE(result, 0, op);
36123612
}
36133613

3614+
3615+
#ifdef Py_DEBUG
36143616
static int _is_python_smallint(PyObject *op)
36153617
{
36163618
PyLongObject *pylong = (PyLongObject*)op;
@@ -3625,6 +3627,7 @@ static int _is_python_smallint(PyObject *op)
36253627
}
36263628
return 0;
36273629
}
3630+
#endif
36283631

36293632
static void
36303633
long_dealloc(PyObject *self)

0 commit comments

Comments
 (0)