Skip to content

Commit cdb7020

Browse files
fishilicodavidmalcolm
authored andcommitted
Update gcc-python-wrapper.c for Python 3.8
Commit 3a4b484 ("Build on Python 3.8") updated `cpybuilder.py` but not `gcc-python-wrapper.c`. This results in the following error when building with Python 3.8: gcc-python-wrapper.c:188:1: error: converting to non-pointer type ‘long int’ from NULL [-Werror=conversion-null] 188 | }; | ^
1 parent b6cb6bb commit cdb7020

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gcc-python-wrapper.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ PyTypeObject PyGccWrapperMeta_TypeObj = {
137137
sizeof(PyGccWrapperTypeObject), /*tp_basicsize*/
138138
0, /*tp_itemsize*/
139139
NULL, /* tp_dealloc */
140+
#if PY_VERSION_HEX >= 0x03080000
141+
0, /*tp_vectorcall_offset*/
142+
#else
140143
NULL, /* tp_print */
144+
#endif
141145
NULL, /* tp_getattr */
142146
NULL, /* tp_setattr */
143147
#if PY_MAJOR_VERSION < 3

0 commit comments

Comments
 (0)