Commit 134e7acc authored by Stefan Behnel's avatar Stefan Behnel

Fix crash during contiguity check in Pythran buffer type checking code: loop...

Fix crash during contiguity check in Pythran buffer type checking code: loop was accidentally reversed in refactoring.
parent 6104ba2a
......@@ -455,7 +455,7 @@ class FusedCFuncDefNode(StatListNode):
cur_stride = itemsize
shape = arg.shape
strides = arg.strides
for i in range(arg.ndim):
for i in range(arg.ndim-1, -1, -1):
if (<Py_ssize_t>strides[i]) != cur_stride:
arg_is_pythran_compatible = False
break
......
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