From 1efe99009f933d78781cec8e078472a487ab3fdd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 23 Apr 2022 10:11:57 +0530 Subject: [PATCH] Mark constness --- src/calibre/utils/icu_calibre_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/utils/icu_calibre_utils.h b/src/calibre/utils/icu_calibre_utils.h index 283a7f575d..d80a62da97 100644 --- a/src/calibre/utils/icu_calibre_utils.h +++ b/src/calibre/utils/icu_calibre_utils.h @@ -133,7 +133,7 @@ static UChar32* python_to_icu32(PyObject *obj, int32_t *osz) { #endif #ifndef NO_ICU_TO_PYTHON -static PyObject* icu_to_python(UChar *src, int32_t sz) { - return PyUnicode_DecodeUTF16((char*) src, sz * sizeof(UChar), "replace", NULL); +static PyObject* icu_to_python(const UChar *src, int32_t sz) { + return PyUnicode_DecodeUTF16((const char*) src, sz * sizeof(UChar), "replace", NULL); } #endif