mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Squelch compiler warning
This commit is contained in:
parent
fa04ef7ffc
commit
974592eb23
@ -1101,7 +1101,7 @@ icu_utf16_length(PyObject *self, PyObject *src) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!PyUnicode_Check(src)) { PyErr_SetString(PyExc_TypeError, "Must be a unicode object"); return NULL; }
|
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
|
#ifdef Py_UNICODE_WIDE
|
||||||
data = PyUnicode_AS_UNICODE(src);
|
data = PyUnicode_AS_UNICODE(src);
|
||||||
for (i = 0; i < sz; i++) {
|
for (i = 0; i < sz; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user