Commit 6bd76e3f authored by Thomas Wouters's avatar Thomas Wouters

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

parent 21555756
......@@ -672,7 +672,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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment