Skip to content

Commit bffe631

Browse files
committed
Merge pull request #7768 from AdamWill/charindex-type
Convert unicode index to long, not int, in get_char_index
1 parent 5cdf8af commit bffe631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ft2font_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ static PyObject *PyFT2Font_get_char_index(PyFT2Font *self, PyObject *args, PyObj
971971
FT_UInt index;
972972
FT_ULong ccode;
973973

974-
if (!PyArg_ParseTuple(args, "I:get_char_index", &ccode)) {
974+
if (!PyArg_ParseTuple(args, "k:get_char_index", &ccode)) {
975975
return NULL;
976976
}
977977

0 commit comments

Comments
 (0)