Skip to content

Commit 99903ba

Browse files
committed
Merge pull request #13868 from anntzer/ssize_t
FIX: Correctly handle fallout of defining PY_SSIZE_T_CLEAN on Windows.
1 parent f33ca39 commit 99903ba

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
@@ -1264,15 +1264,15 @@ static PyObject *PyFT2Font_get_sfnt_table(PyFT2Font *self, PyObject *args, PyObj
12641264
t->sFamilyClass,
12651265
"panose",
12661266
t->panose,
1267-
10,
1267+
Py_ssize_t(10),
12681268
"ulCharRange",
12691269
t->ulUnicodeRange1,
12701270
t->ulUnicodeRange2,
12711271
t->ulUnicodeRange3,
12721272
t->ulUnicodeRange4,
12731273
"achVendID",
12741274
t->achVendID,
1275-
4,
1275+
Py_ssize_t(4),
12761276
"fsSelection",
12771277
t->fsSelection,
12781278
"fsFirstCharIndex",
@@ -1404,10 +1404,10 @@ static PyObject *PyFT2Font_get_sfnt_table(PyFT2Font *self, PyObject *args, PyObj
14041404
t->SymbolSet,
14051405
"typeFace",
14061406
t->TypeFace,
1407-
16,
1407+
Py_ssize_t(16),
14081408
"characterComplement",
14091409
t->CharacterComplement,
1410-
8,
1410+
Py_ssize_t(8),
14111411
"strokeWeight",
14121412
t->StrokeWeight,
14131413
"widthType",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy