From: Lisandro Dalcin Date: Thu, 23 Oct 2008 15:00:42 +0000 (-0300) Subject: fix return types for some numpy API macro calls X-Git-Tag: 0.9.9.2.beta~26^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2a4086d37e688757adf2f2111192e9291a074629;p=cython.git fix return types for some numpy API macro calls --- diff --git a/Cython/Includes/numpy.pxd b/Cython/Includes/numpy.pxd index 5a64bb9d..fb4aa8d1 100644 --- a/Cython/Includes/numpy.pxd +++ b/Cython/Includes/numpy.pxd @@ -176,9 +176,9 @@ cdef extern from "numpy/arrayobject.h": cdef int PyArray_TYPE(ndarray arr) cdef int PyArray_NDIM(ndarray arr) cdef int PyArray_ISWRITEABLE(ndarray arr) - cdef npy_intp PyArray_STRIDES(ndarray arr) - cdef npy_intp PyArray_DIMS(ndarray arr) - cdef Py_ssize_t PyArray_ITEMSIZE(ndarray arr) + cdef npy_intp* PyArray_STRIDES(ndarray arr) + cdef npy_intp* PyArray_DIMS(ndarray arr) + cdef int PyArray_ITEMSIZE(ndarray arr) cdef int PyArray_CHKFLAGS(ndarray arr, int flags) cdef int PyArray_HASFIELDS(ndarray arr, int flags)