Skip to content

Commit

Permalink
fix PY_NEW signature
Browse files Browse the repository at this point in the history
  • Loading branch information
infmagic2047 committed Aug 20, 2023
1 parent d22f7ae commit a632238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/ext/stdsage.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Standard C helper code for Cython modules
# http://www.gnu.org/licenses/
#*****************************************************************************

from cpython.object cimport Py_TYPE, PyTypeObject
from cpython.object cimport Py_TYPE, PyTypeObject, PyObject


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


cdef inline void PY_SET_TP_NEW(type dst, type src):
Expand Down

0 comments on commit a632238

Please sign in to comment.