Code had returned an ssize_t, upcast to long, then converted with PyInt_FromLong.

Now using PyInt_FromSsize_t.
This commit is contained in:
Andrew Dalke 2006-05-25 18:03:25 +00:00
parent af72237abc
commit b552c4d848

View file

@ -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;