Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0e4b67

Browse files
authored
Merge pull request #7768 from AdamWill/charindex-type
Convert unicode index to long, not int, in get_char_index
2 parents 59263ae + c4c0b65 commit b0e4b67

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)