mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Change int to Py_ssize_t in several places.
Add (int) casts to silence compiler warnings. Raise Python exceptions for overflows.
This commit is contained in:
parent
8eb8a829c1
commit
725507b52e
11 changed files with 57 additions and 32 deletions
|
|
@ -2514,7 +2514,7 @@ static PyObject *
|
|||
filterunicode(PyObject *func, PyObject *strobj)
|
||||
{
|
||||
PyObject *result;
|
||||
register int i, j;
|
||||
register Py_ssize_t i, j;
|
||||
Py_ssize_t len = PyUnicode_GetSize(strobj);
|
||||
Py_ssize_t outlen = len;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue