Kaydet (Commit) a97744c9 authored tarafından Thomas Wouters's avatar Thomas Wouters

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

üst 8d5cf4ed
......@@ -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();
}
......
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