Commit f6273d89 authored by Kurt Smith's avatar Kurt Smith Committed by Mark Florisson

needed a check for PyErr_Occurred rather than a check for NULL when calling memview_cwrapper

parent ed83e6f6
...@@ -7633,7 +7633,7 @@ class CoerceToMemViewSliceNode(CoercionNode): ...@@ -7633,7 +7633,7 @@ class CoerceToMemViewSliceNode(CoercionNode):
code.putln("%s = (PyObject *)" code.putln("%s = (PyObject *)"
"__pyx_viewaxis_memoryview_cwrapper(%s, %s);" %\ "__pyx_viewaxis_memoryview_cwrapper(%s, %s);" %\
(memviewobj, self.arg.py_result(), buf_flag)) (memviewobj, self.arg.py_result(), buf_flag))
code.putln(code.error_goto_if_null(memviewobj, self.pos)) code.putln(code.error_goto_if_PyErr(self.pos))
ndim = len(self.type.axes) ndim = len(self.type.axes)
spec_int_arr = code.funcstate.allocate_temp( spec_int_arr = code.funcstate.allocate_temp(
PyrexTypes.c_array_type(PyrexTypes.c_int_type, ndim), PyrexTypes.c_array_type(PyrexTypes.c_int_type, ndim),
......
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