Commit 0532a091 authored by Stefan Behnel's avatar Stefan Behnel

Fix compilation in PyPy.

parent de2a3c60
......@@ -331,7 +331,7 @@ __PYX_GOOD:
static CYTHON_INLINE PyObject *{{func_name}}_maybe_call_slot(PyTypeObject* type, PyObject *left, PyObject *right {{extra_arg_decl}}) {
{{slot_type}} slot;
#if CYTHON_USE_TYPE_SLOTS
#if !CYTHON_COMPILING_IN_LIMITED_API
slot = type->tp_as_number ? type->tp_as_number->{{slot_name}} : NULL;
#else
slot = ({{slot_type}}) PyType_GetSlot(type, Py_{{slot_name}});
......
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