Commit 7d068106 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #169 from cgohlke/patch-2

Fix memoryview crashes when using msvc9 64 bit compiler 
parents e5abacf3 fdf26b79
......@@ -836,7 +836,7 @@ cdef int slice_memviewslice(
with cython.cdivision(True):
new_shape = (stop - start) // step
if (stop - start) % step:
if (stop - start) - step * new_shape:
new_shape += 1
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