Fix integer type conversions

This commit is contained in:
Kovid Goyal 2014-07-12 11:08:30 +05:30
parent 446e7a9b0b
commit 6fb388e662

View File

@ -636,7 +636,7 @@ icu_BreakIterator_index(icu_BreakIterator *self, PyObject *args, PyObject *kwarg
end:
free(buf);
return Py_BuildValue("l", (long int)ans);
return Py_BuildValue("l", (long)ans);
} // }}}
@ -685,7 +685,7 @@ icu_BreakIterator_split2(icu_BreakIterator *self, PyObject *args, PyObject *kwar
PyTuple_SET_ITEM(temp, 1, t);
} else {
last_sz = sz;
temp = Py_BuildValue("II", (unsigned int)prev, (unsigned int)sz);
temp = Py_BuildValue("ll", (long)prev, (long)sz);
if (temp == NULL) {
Py_DECREF(ans); ans = NULL; break;
}