Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 99903ba

Browse filesBrowse 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
Copy full SHA for 99903ba

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎src/ft2font_wrapper.cpp

Copy file name to clipboardExpand all lines: src/ft2font_wrapper.cpp
+4-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.