提交 95e8b609 authored 作者: Frederic's avatar Frederic

[CRASH] Fix recent compilation crash.

上级 2e63b45a
......@@ -25,7 +25,7 @@ index aaebb43..2d06b29 100644
* cdef inline object get_array_base(ndarray arr):
*/
- __pyx_v_arr->base = __pyx_v_baseptr;
+#if NPY_API < 0x00000007
+#if NPY_API_VERSION < 0x00000007
+ PyArray_BASE(__pyx_v_arr) = __pyx_v_baseptr;
+#else
+ PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_baseptr);
......
......@@ -7156,7 +7156,7 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
*
* cdef inline object get_array_base(ndarray arr):
*/
#if NPY_API < 0x00000007
#if NPY_API_VERSION < 0x00000007
PyArray_BASE(__pyx_v_arr) = __pyx_v_baseptr;
#else
PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_baseptr);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论