Skip to content

Commit e1776f2

Browse files
committed
fix convert
1 parent be51cfb commit e1776f2

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
@@ -320,7 +320,7 @@ module IteratorsMD
320320
convert(::Type{Tuple{}}, R::CartesianIndices{0}) = ()
321321
for RT in (OrdinalRange{Int, Int}, StepRange{Int, Int}, AbstractUnitRange{Int})
322322
@eval convert(::Type{NTuple{N,$RT}}, R::CartesianIndices{N}) where {N} =
323-
map($RT, R.indices)
323+
map(x->convert($RT, x), R.indices)
324324
end
325325
convert(::Type{NTuple{N,AbstractUnitRange}}, R::CartesianIndices{N}) where {N} =
326326
convert(NTuple{N,AbstractUnitRange{Int}}, R)

0 commit comments

Comments
 (0)