提交 301e37f3 authored 作者: Frederic's avatar Frederic

Fix compile crash on old numpy just introduced.

上级 64acf7e1
...@@ -6982,7 +6982,11 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a ...@@ -6982,7 +6982,11 @@ static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_a
* *
* cdef inline object get_array_base(ndarray arr): * cdef inline object get_array_base(ndarray arr):
*/ */
PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_baseptr); #if NPY_API_VERSION < 0x00000007
PyArray_BASE(__pyx_v_arr) = __pyx_v_baseptr;
#else
PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_baseptr);
#endif
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论