From 0eaef416ceff473fe74c087b9de8c80b3b00e099 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Wed, 3 Apr 2019 16:48:21 +0200 Subject: [PATCH] Correctly handle fallout of defining PY_SSIZE_T_CLEAN on Windows. --- src/ft2font_wrapper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ft2font_wrapper.cpp b/src/ft2font_wrapper.cpp index 3ebaffffb9d2..f71b62813fc0 100644 --- a/src/ft2font_wrapper.cpp +++ b/src/ft2font_wrapper.cpp @@ -1260,7 +1260,7 @@ static PyObject *PyFT2Font_get_sfnt_table(PyFT2Font *self, PyObject *args, PyObj t->sFamilyClass, "panose", t->panose, - 10, + Py_ssize_t(10), "ulCharRange", t->ulUnicodeRange1, t->ulUnicodeRange2, @@ -1268,7 +1268,7 @@ static PyObject *PyFT2Font_get_sfnt_table(PyFT2Font *self, PyObject *args, PyObj t->ulUnicodeRange4, "achVendID", t->achVendID, - 4, + Py_ssize_t(4), "fsSelection", t->fsSelection, "fsFirstCharIndex", @@ -1394,10 +1394,10 @@ static PyObject *PyFT2Font_get_sfnt_table(PyFT2Font *self, PyObject *args, PyObj t->SymbolSet, "typeFace", t->TypeFace, - 16, + Py_ssize_t(16), "characterComplement", t->CharacterComplement, - 8, + Py_ssize_t(8), "strokeWeight", t->StrokeWeight, "widthType",