8000 Merge pull request #13868 from anntzer/ssize_t · matplotlib/matplotlib@acad890 · GitHub
[go: up one dir, main page]

Skip to content

Commit acad890

Browse files
authored
Merge pull request #13868 from anntzer/ssize_t
FIX: Correctly handle fallout of defining PY_SSIZE_T_CLEAN on Windows.
2 parents 5879905 + 0eaef41 commit acad890

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ft2font_wrapper.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,15 +1260,15 @@ static PyObject *PyFT2Font_get_sfnt_table(PyFT2Font *self, PyObject *args, PyObj
12601260
t->sFamilyClass,
12611261
"panose",
12621262
t->panose,
1263-
10,
1263+
Py_ssize_t(10),
12641264
"ulCharRange",
12651265
t->ulUnicodeRange1,
12661266
t->ulUnicodeRange2,
12671267
t->ulUnicodeRange3,
12681268
t->ulUnicodeRange4,
12691269
"achVendID",
12701270
t->achVendID,
1271-
4,
1271+
Py_ssize_t(4),
12721272
"fsSelection",
12731273
t->fsSelection,
12741274
"fsFirstCharIndex",
@@ -1394,10 +1394,10 @@ static PyObject *PyFT2Font_get_sfnt_table(PyFT2Font *self, PyObject *args, PyObj
13941394
t->SymbolSet,
13951395
"typeFace",
13961396
t->TypeFace,
1397-
16,
1397+
Py_ssize_t(16),
13981398
"characterComplement",
13991399
t->CharacterComplement,
1400-
8,
1400+
Py_ssize_t(8),
14011401
"strokeWeight",
14021402
t->StrokeWeight,
14031403
"widthType",

0 commit comments

Comments
 (0)
0