Use the right (portable) definition of the max of a Py_ssize_t.
This commit is contained in:
parent
8d5cf4ed57
commit
a97744c9d9
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue