From 4db065579f0b3e13bb76d697b421af2ad8b17df6 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Sat, 24 Oct 2015 12:40:54 +0200 Subject: [PATCH] DOC: fix cython example (failed on Windows as Py_ssize_t and int are not the same) --- doc/source/enhancingperf.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/enhancingperf.rst b/doc/source/enhancingperf.rst index 028e6d064a561..d98801f4a7afe 100644 --- a/doc/source/enhancingperf.rst +++ b/doc/source/enhancingperf.rst @@ -274,8 +274,8 @@ advanced cython techniques: ...: return s * dx ...: @cython.boundscheck(False) ...: @cython.wraparound(False) - ...: cpdef np.ndarray[double] apply_integrate_f_wrap(np.ndarray[double] col_a, np.ndarray[double] col_b, np.ndarray[Py_ssize_t] col_N): - ...: cdef Py_ssize_t i, n = len(col_N) + ...: cpdef np.ndarray[double] apply_integrate_f_wrap(np.ndarray[double] col_a, np.ndarray[double] col_b, np.ndarray[int] col_N): + ...: cdef int i, n = len(col_N) ...: assert len(col_a) == len(col_b) == n ...: cdef np.ndarray[double] res = np.empty(n) ...: for i in range(n):