@@ -387,7 +387,7 @@ static int PyFT2Font_init(PyFT2Font *self, PyObject *args, PyObject *kwds)
387387 if (fallback_list && PyList_Check (fallback_list)) {
388388 Py_ssize_t size = PyList_Size (fallback_list);
389389
390- for (int i = 0 ; i < size; ++i) {
390+ for (Py_ssize_t i = 0 ; i < size; ++i) {
391391 PyObject* item = PyList_GetItem (fallback_list, i);
392392
393393 // TODO: check whether item is actually an FT2Font
@@ -661,7 +661,7 @@ static PyObject *PyFT2Font_fill_glyphs(PyFT2Font *self, PyObject *args, PyObject
661661 || !(val = reinterpret_cast <PyObject *>(itr.second ->get_pyfont ()))
662662 || (PyDict_SetItem (char_to_font, key, val) == -1 ));
663663 Py_XDECREF (key);
664- // do not decref value here, it's an FT2Font pointer
664+ // do not decref value here, it's a PyFT2Font pointer
665665
666666 if (error) {
667667 Py_DECREF (char_to_font);
@@ -700,7 +700,7 @@ static PyObject *PyFT2Font_get_char_to_font(PyFT2Font *self, PyObject *args, PyO
700700 || !(val = reinterpret_cast <PyObject *>(itr.second ->get_pyfont ()))
701701 || (PyDict_SetItem (char_to_font, key, val) == -1 ));
702702 Py_XDECREF (key);
703- // do not decref value here, it's an FT2Font pointer
703+ // do not decref value here, it's a PyFT2Font pointer
704704
705705 if (error) {
706706 Py_DECREF (char_to_font);
@@ -729,7 +729,7 @@ static PyObject *PyFT2Font_get_glyph_to_font(PyFT2Font *self, PyObject *args, Py
729729 || !(val = reinterpret_cast <PyObject *>(itr.second ->get_pyfont ()))
730730 || (PyDict_SetItem (glyph_to_font, key, val) == -1 ));
731731 Py_XDECREF (key);
732- // do not decref value here, it's an FT2Font pointer
732+ // do not decref value here, it's a PyFT2Font pointer
733733
734734 if (error) {
735735 Py_DECREF (glyph_to_font);
@@ -960,7 +960,6 @@ static PyObject *PyFT2Font_get_glyph_name(PyFT2Font *self, PyObject *args, PyObj
960960 char buffer[128 ];
961961 int fallback = 1 ;
962962
963- // parse kwds too
964963 if (!PyArg_ParseTuple (args, " I:get_glyph_name" , &glyph_number)) {
965964 return NULL ;
966965 }
0 commit comments