Skip to content

Commit

Permalink
Merge pull request matplotlib#7768 from AdamWill/charindex-type
Browse files Browse the repository at this point in the history
Convert unicode index to long, not int, in get_char_index
  • Loading branch information
dopplershift authored Jan 9, 2017
2 parents 59263ae + c4c0b65 commit b0e4b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ft2font_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ static PyObject *PyFT2Font_get_char_index(PyFT2Font *self, PyObject *args, PyObj
FT_UInt index;
FT_ULong ccode;

if (!PyArg_ParseTuple(args, "I:get_char_index", &ccode)) {
if (!PyArg_ParseTuple(args, "k:get_char_index", &ccode)) {
return NULL;
}

Expand Down

0 comments on commit b0e4b67

Please sign in to comment.