Skip to content

Commit 6319f2b

Browse files
committed
Relax signature to AbstractRange
1 parent f44252f commit 6319f2b

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
@@ -403,7 +403,7 @@ module IteratorsMD
403403
getindex(iter, C.indices...)
404404
end
405405
@inline Base.getindex(iter::CartesianIndices{0}, ::CartesianIndices{0}) = iter
406-
@inline function Base.getindex(iter::CartesianIndices{N}, r::StepRangeLen{CartesianIndex{N},CartesianIndex{N},CartesianIndex{N},<:Integer}) where {N}
406+
@inline function Base.getindex(iter::CartesianIndices{N}, r::AbstractRange{CartesianIndex{N}}) where {N}
407407
@boundscheck checkbounds(iter, r)
408408
start = first(iter) + CartesianIndex((Tuple(first(r)) .- first.(axes(iter))) .* Tuple(step(iter)))
409409
stepsz = CartesianIndex(Tuple(step(iter)) .* Tuple(step(r)))

0 commit comments

Comments
 (0)