Commit fdf26b79 authored by cgohlke's avatar cgohlke

Fix memoryview crashes when using msvc9 64 bit compiler

parent e5abacf3
...@@ -836,7 +836,7 @@ cdef int slice_memviewslice( ...@@ -836,7 +836,7 @@ cdef int slice_memviewslice(
with cython.cdivision(True): with cython.cdivision(True):
new_shape = (stop - start) // step new_shape = (stop - start) // step
if (stop - start) % step: if (stop - start) - step * new_shape:
new_shape += 1 new_shape += 1
if new_shape < 0: if new_shape < 0:
......
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