diff options
author | Kurt Smith <kwsmith1@wisc.edu> | 2009-08-13 23:59:51 -0500 |
---|---|---|
committer | Kurt Smith <kwsmith1@wisc.edu> | 2009-08-13 23:59:51 -0500 |
commit | 5b27cfff5cb4e2063f07b4bb592e7ecd4c132a84 (patch) | |
tree | 9228d30941501e872f0cf282dd2e0ee86d2b0d7c | |
parent | 5ccb6e9a2f5c5ad6d543112dc15b08b7bb0d5da8 (diff) | |
download | cython-5b27cfff5cb4e2063f07b4bb592e7ecd4c132a84.tar.gz |
needed a check for PyErr_Occurred rather than a check for NULL when calling memview_cwrapper
-rw-r--r-- | Cython/Compiler/ExprNodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 395af3b49..e78cfdb9e 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -5178,7 +5178,7 @@ class CoerceToMemViewSliceNode(CoercionNode): code.putln("%s = (PyObject *)" "__pyx_viewaxis_memoryview_cwrapper(%s, %s);" %\ (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) spec_int_arr = code.funcstate.allocate_temp( PyrexTypes.c_array_type(PyrexTypes.c_int_type, ndim), |