Skip to content

Commit 035625d

Browse files
committed
Adjust small int range
1 parent 8f93dd0 commit 035625d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_testcapi/immortal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ test_immortal_none(PyObject *self, PyObject *Py_UNUSED(ignored))
4646
static PyObject *
4747
test_immortal_small_ints(PyObject *self, PyObject *Py_UNUSED(ignored))
4848
{
49-
for(int i = -5; i < 255; i++) {
49+
for(int i = -5; i <= 256; i++) {
5050
PyObject *small_int = PyLong_FromLong(i);
5151
if (!_Py_IsImmortal(small_int)) {
5252
PyErr_Format(PyExc_RuntimeError, "Small int(%d) object should be the immportal object.", i);

0 commit comments

Comments
 (0)