@@ -390,7 +390,7 @@ static int PyFT2Font_init(PyFT2Font *self, PyObject *args, PyObject *kwds)
390
390
if (fallback_list && PyList_Check (fallback_list)) {
391
391
Py_ssize_t size = PyList_Size (fallback_list);
392
392
393
- for (int i = 0 ; i < size; ++i) {
393
+ for (Py_ssize_t i = 0 ; i < size; ++i) {
394
394
PyObject* item = PyList_GetItem (fallback_list, i);
395
395
396
396
// TODO: check whether item is actually an FT2Font
@@ -664,7 +664,7 @@ static PyObject *PyFT2Font_fill_glyphs(PyFT2Font *self, PyObject *args, PyObject
664
664
|| !(val = reinterpret_cast <PyObject *>(itr.second ->get_pyfont ()))
665
665
|| (PyDict_SetItem (char_to_font, key, val) == -1 ));
666
666
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
668
668
669
669
if (error) {
670
670
Py_DECREF (char_to_font);
@@ -703,7 +703,7 @@ static PyObject *PyFT2Font_get_char_to_font(PyFT2Font *self, PyObject *arg
C85B
s, PyO
703
703
|| !(val = reinterpret_cast <PyObject *>(itr.second ->get_pyfont ()))
704
704
|| (PyDict_SetItem (char_to_font, key, val) == -1 ));
705
705
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
707
707
708
708
if (error) {
709
709
Py_DECREF (char_to_font);
@@ -732,7 +732,7 @@ static PyObject *PyFT2Font_get_glyph_to_font(PyFT2Font *self, PyObject *args, Py
732
732
|| !(val = reinterpret_cast <PyObject *>(itr.second ->get_pyfont ()))
733
733
|| (PyDict_SetItem (glyph_to_font, key, val) == -1 ));
734
734
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
736
736
737
737
if (error) {
738
738
Py_DECREF (glyph_to_font);
@@ -963,7 +963,6 @@ static PyObject *PyFT2Font_get_glyph_name(PyFT2Font *self, PyObject *args)
963
963
char buffer[128 ];
964
964
int fallback = 1 ;
965
965
966
- // parse kwds too
967
966
if (!PyArg_ParseTuple (args, " I:get_glyph_name" , &glyph_number)) {
968
967
return NULL ;
969
968
}
0 commit comments