Correction

This commit is contained in:
richardpaulhudson 2022-10-14 17:22:48 +02:00
parent c6cf5f2cb4
commit 07b6b53dae

View File

@ -2082,7 +2082,7 @@ cdef void _populate_affix_buf(
cdef Py_UCS4 working_wchar
while affix_buf_idx < pref_length and affix_buf_idx < word_len:
working_wchar = PyUnicode_READ(unicode_byte_width, str_data_ptr, idx)
working_wchar = PyUnicode_READ(unicode_byte_width, str_data_ptr, in_word_idx)
if to_lower:
working_wchar = Py_UNICODE_TOLOWER(working_wchar)
memcpy(affix_buf + affix_buf_idx, &working_wchar, 4)