mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-19 15:54:49 +01:00
Fix integer type conversions
This commit is contained in:
parent
446e7a9b0b
commit
6fb388e662
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue