Mark constness

This commit is contained in:
Kovid Goyal 2022-04-23 10:11:57 +05:30
parent 86373bac9b
commit 1efe99009f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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