mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Use the right (portable) definition of the max of a Py_ssize_t.
This commit is contained in:
parent
8d5cf4ed57
commit
a97744c9d9
1 changed files with 1 additions and 1 deletions
|
|
@ -684,7 +684,7 @@ list_inplace_repeat(PyListObject *self, Py_ssize_t n)
|
||||||
return (PyObject *)self;
|
return (PyObject *)self;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size > SSIZE_MAX / n) {
|
if (size > PY_SSIZE_T_MAX / n) {
|
||||||
return PyErr_NoMemory();
|
return PyErr_NoMemory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue