mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:43:27 +02:00
Squelch compiler warning
This commit is contained in:
parent
fa04ef7ffc
commit
974592eb23
1 changed files with 1 additions and 1 deletions
|
|
@ -1101,7 +1101,7 @@ icu_utf16_length(PyObject *self, PyObject *src) {
|
|||
#endif
|
||||
|
||||
if (!PyUnicode_Check(src)) { PyErr_SetString(PyExc_TypeError, "Must be a unicode object"); return NULL; }
|
||||
sz = PyUnicode_GET_SIZE(src);
|
||||
sz = (int32_t)PyUnicode_GET_SIZE(src);
|
||||
#ifdef Py_UNICODE_WIDE
|
||||
data = PyUnicode_AS_UNICODE(src);
|
||||
for (i = 0; i < sz; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue