Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Add some needed casts
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed May 6, 2015
1 parent 3ec2842 commit 6e6870b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/misc/cython_metaclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ static CYTHON_INLINE int Sage_PyType_Ready(PyTypeObject* t)
getmetaclass = PyObject_GetAttrString((PyObject*)t, "__getmetaclass__");
if (getmetaclass)
{
/* Class getmetaclass with self == None */
metaclass = PyMethodDescr_CallSelf((PyMethodDescrObject*)getmetaclass, Py_None);
/* Call getmetaclass with self=None */
metaclass = (PyTypeObject*)(PyMethodDescr_CallSelf((PyMethodDescrObject*)getmetaclass, Py_None));
Py_DECREF(getmetaclass);
if (!metaclass)
return -1;
Expand Down Expand Up @@ -97,7 +97,7 @@ static CYTHON_INLINE int Sage_PyType_Ready(PyTypeObject* t)
NoneNoneNone = PyTuple_Pack(3, Py_None, Py_None, Py_None);
if (!NoneNoneNone) return -1;
}
return init(t, NoneNoneNone, NULL);
return init((PyObject*)t, NoneNoneNone, NULL);
}


Expand Down

0 comments on commit 6e6870b

Please sign in to comment.