@@ -390,7 +390,7 @@ static int PyFT2Font_init(PyFT2Font *self, PyObject *args, PyObject *kwds)
390390 if (fallback_list && PyList_Check (fallback_list)) {
391391 Py_ssize_t size = PyList_Size (fallback_list);
392392
393- for (int i = 0 ; i < size; ++i) {
393+ for (Py_ssize_t i = 0 ; i < size; ++i) {
394394 PyObject* item = PyList_GetItem (fallback_list, i);
395395
396396 // TODO: check whether item is actually an FT2Font
@@ -664,7 +664,7 @@ static PyObject *PyFT2Font_fill_glyphs(PyFT2Font *self, PyObject *args, PyObject
664664 || !(val = reinterpret_cast <PyObject *>(itr.second ->get_pyfont ()))
665665 || (PyDict_SetItem (char_to_font, key, val) == -1 ));
666666 Py_XDECREF (key);
667- // do not decref value here, it's an FT2Font pointer
667+ // do not decref value here, it's a PyFT2Font pointer
668668
669669 if (error) {
670670 Py_DECREF (char_to_font);
@@ -703,7 +703,7 @@ static PyObject *PyFT2Font_get_char_to_font(PyFT2Font *self, PyObject *args, PyO
703703 || !(val = reinterpret_cast <PyObject *>(itr.second ->get_pyfont ()))
704704 || (PyDict_SetItem (char_to_font, key, val) == -1 ));
705705 Py_XDECREF (key);
706- // do not decref value here, it's an FT2Font pointer
706+ // do not decref value here, it's a PyFT2Font pointer
707707
708708 if (error) {
709709 Py_DECREF (char_to_font);
@@ -732,7 +732,7 @@ static PyObject *PyFT2Font_get_glyph_to_font(PyFT2Font *self, PyObject *args, Py
732732 || !(val = reinterpret_cast <PyObject *>(itr.second ->get_pyfont ()))
733733 || (PyDict_SetItem (glyph_to_font, key, val) == -1 ));
734734 Py_XDECREF (key);
735- // do not decref value here, it's an FT2Font pointer
735+ // do not decref value here, it's a PyFT2Font pointer
736736
737737 if (error) {
738738 Py_DECREF (glyph_to_font);
@@ -963,7 +963,6 @@ static PyObject *PyFT2Font_get_glyph_name(PyFT2Font *self, PyObject *args)
963963 char buffer[128 ];
964964 int fallback = 1 ;
965965
966- // parse kwds too
967966 if (!PyArg_ParseTuple (args, " I:get_glyph_name" , &glyph_number)) {
968967 return NULL ;
969968 }
0 commit comments