summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Objects/listobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 86110cb214..78e8da4b3d 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -684,7 +684,7 @@ list_inplace_repeat(PyListObject *self, Py_ssize_t n)
return (PyObject *)self;
}
- if (size > SSIZE_MAX / n) {
+ if (size > PY_SSIZE_T_MAX / n) {
return PyErr_NoMemory();
}