Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 37920:ce5585afc20f legacy-trunk
Fix more ssize_t issues.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 22 Apr 2006 11:40:03 +0000 |
| parents | acd8fba61943 |
| children | eb4879c085aa |
line wrap: on
line diff
--- a/Python/ceval.c Sat Apr 22 11:15:41 2006 +0000 +++ b/Python/ceval.c Sat Apr 22 11:40:03 2006 +0000 @@ -1560,7 +1560,7 @@ /* XXX move into writeobject() ? */ if (PyString_Check(v)) { char *s = PyString_AS_STRING(v); - int len = PyString_GET_SIZE(v); + Py_ssize_t len = PyString_GET_SIZE(v); if (len == 0 || !isspace(Py_CHARMASK(s[len-1])) || s[len-1] == ' ') @@ -1569,7 +1569,7 @@ #ifdef Py_USING_UNICODE else if (PyUnicode_Check(v)) { Py_UNICODE *s = PyUnicode_AS_UNICODE(v); - int len = PyUnicode_GET_SIZE(v); + Py_ssize_t len = PyUnicode_GET_SIZE(v); if (len == 0 || !Py_UNICODE_ISSPACE(s[len-1]) || s[len-1] == ' ')
