Commit b552c4d8 authored by Andrew Dalke's avatar Andrew Dalke

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

Now using PyInt_FromSsize_t.
parent af72237a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment