Use the right (portable) definition of the max of a Py_ssize_t.

This commit is contained in:
Thomas Wouters 2008-01-25 21:09:34 +00:00
parent 8d5cf4ed57
commit a97744c9d9
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}