diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-22 11:40:03 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-22 11:40:03 (GMT) |
commit | 6685128b973981ff57b577f09b0a38e0071d272e (patch) | |
tree | c4d5536244f91e6c818b2ceb6335c56386156629 /Python/ceval.c | |
parent | 26fd9607c729f4dbe322967464834a2bce18c07d (diff) | |
download | cpython-6685128b973981ff57b577f09b0a38e0071d272e.zip cpython-6685128b973981ff57b577f09b0a38e0071d272e.tar.gz cpython-6685128b973981ff57b577f09b0a38e0071d272e.tar.bz2 |
Fix more ssize_t issues.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index c0d87a5..bfc6108 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1560,7 +1560,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) /* 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 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) #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] == ' ') |