Skip to content

Commit dd28e3d

Browse files
committed
add step to simd_index
1 parent aab4193 commit dd28e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/multidimensional.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ module IteratorsMD
432432

433433
simd_index(iter::CartesianIndices{0}, ::CartesianIndex, I1::Int) = first(iter)
434434
@inline function simd_index(iter::CartesianIndices, Ilast::CartesianIndex, I1::Int)
435-
CartesianIndex((I1+first(iter.indices[1]), Ilast.I...))
435+
CartesianIndex(getindex(iter.indices[1], I1+first(Base.axes1(iter.indices[1]))), Ilast.I...)
436436
end
437437

438438
# Split out the first N elements of a tuple

0 commit comments

Comments
 (0)