Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 36866:9eb24f92a784 legacy-trunk
Change int to Py_ssize_t in several places.
Add (int) casts to silence compiler warnings.
Raise Python exceptions for overflows.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Tue, 07 Mar 2006 12:08:51 +0000 |
| parents | 5c36c222e7ca |
| children | cd1818ee7ea9 c6cf11acb41f |
line wrap: on
line diff
--- a/Python/bltinmodule.c Tue Mar 07 11:58:50 2006 +0000 +++ b/Python/bltinmodule.c Tue Mar 07 12:08:51 2006 +0000 @@ -2514,7 +2514,7 @@ 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;
