Commit bf817f15 authored by Stefan Behnel's avatar Stefan Behnel

Avoid signed vs. unsigned comparison warning for loop variables in memoryview tutorial.

parent a8b33b5b
...@@ -32,7 +32,7 @@ print("NumPy sum of NumPy array after assignments: %s" % narr.sum()) ...@@ -32,7 +32,7 @@ print("NumPy sum of NumPy array after assignments: %s" % narr.sum())
# A function using a memoryview does not usually need the GIL # A function using a memoryview does not usually need the GIL
cpdef int sum3d(int[:, :, :] arr) nogil: cpdef int sum3d(int[:, :, :] arr) nogil:
cdef size_t i, j, k cdef size_t i, j, k, I, J, K
cdef int total = 0 cdef int total = 0
I = arr.shape[0] I = arr.shape[0]
J = arr.shape[1] J = arr.shape[1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment