Skip to content

Commit bb6a9f0

Browse files
Merge pull request #11426 from jorisvandenbossche/doc-cython-windows
DOC: fix cython example (failed on Windows) (GH6002)
2 parents f82be6d + 4db0655 commit bb6a9f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/enhancingperf.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ advanced cython techniques:
274274
...: return s * dx
275275
...: @cython.boundscheck(False)
276276
...: @cython.wraparound(False)
277-
...: 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):
278-
...: cdef Py_ssize_t i, n = len(col_N)
277+
...: cpdef np.ndarray[double] apply_integrate_f_wrap(np.ndarray[double] col_a, np.ndarray[double] col_b, np.ndarray[int] col_N):
278+
...: cdef int i, n = len(col_N)
279279
...: assert len(col_a) == len(col_b) == n
280280
...: cdef np.ndarray[double] res = np.empty(n)
281281
...: for i in range(n):

0 commit comments

Comments
 (0)