Commit 2fe9693a authored by Jeroen Demeyer's avatar Jeroen Demeyer

Pass metaclass as PyObject* (and not PyTypeObject*)

parent 56a44bf2
......@@ -8493,7 +8493,7 @@ class Py3ClassNode(ExprNode):
else:
mkw = 'NULL'
if self.metaclass:
metaclass = self.metaclass.result()
metaclass = self.metaclass.py_result()
else:
metaclass = "((PyObject*)&__Pyx_DefaultClassType)"
code.putln(
......@@ -8579,7 +8579,7 @@ class PyClassNamespaceNode(ExprNode, ModuleNameMixin):
else:
mkw = '(PyObject *) NULL'
if self.metaclass:
metaclass = self.metaclass.result()
metaclass = self.metaclass.py_result()
else:
metaclass = "(PyObject *) NULL"
code.putln(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment