diff options
author | Andrew Dalke <dalke@dalkescientific.com> | 2006-05-25 18:03:25 (GMT) |
---|---|---|
committer | Andrew Dalke <dalke@dalkescientific.com> | 2006-05-25 18:03:25 (GMT) |
commit | b552c4d848c740d6f46ada84f4f6b683305a3b08 (patch) | |
tree | 79e1b2c27b682fb4063e27b7df5ebb94f4b2399d /Objects | |
parent | af72237abca28b7a0afce6f33c846658c2ef978f (diff) | |
download | cpython-b552c4d848c740d6f46ada84f4f6b683305a3b08.zip cpython-b552c4d848c740d6f46ada84f4f6b683305a3b08.tar.gz cpython-b552c4d848c740d6f46ada84f4f6b683305a3b08.tar.bz2 |
Code had returned an ssize_t, upcast to long, then converted with PyInt_FromLong.
Now using PyInt_FromSsize_t.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index bcf2c38..aff14f5 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5306,7 +5306,7 @@ unicode_count(PyUnicodeObject *self, PyObject *args) if (end < 0) end = 0; - result = PyInt_FromLong((long) count(self, start, end, substring)); + result = PyInt_FromSsize_t(count(self, start, end, substring)); Py_DECREF(substring); return result; |