Skip to content

Commit a632238

Browse files
committed
fix PY_NEW signature
1 parent d22f7ae commit a632238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/ext/stdsage.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Standard C helper code for Cython modules
1010
# http://www.gnu.org/licenses/
1111
#*****************************************************************************
1212

13-
from cpython.object cimport Py_TYPE, PyTypeObject
13+
from cpython.object cimport Py_TYPE, PyTypeObject, PyObject
1414

1515

1616
cdef inline PY_NEW(type t):
@@ -19,7 +19,7 @@ cdef inline PY_NEW(type t):
1919
:class:`Integer` where we change ``tp_new`` at runtime (Cython
2020
optimizations assume that ``tp_new`` doesn't change).
2121
"""
22-
return (<PyTypeObject*>t).tp_new(t, <object>NULL, <object>NULL)
22+
return (<PyTypeObject*>t).tp_new(t, <PyObject*>NULL, <PyObject*>NULL)
2323

2424

2525
cdef inline void PY_SET_TP_NEW(type dst, type src):

0 commit comments

Comments
 (0)