diff --git a/base/reshapedarray.jl b/base/reshapedarray.jl index 895665f449da3..07e661bc72203 100644 --- a/base/reshapedarray.jl +++ b/base/reshapedarray.jl @@ -197,7 +197,7 @@ elsize(::Type{<:ReshapedArray{<:Any,<:Any,P}}) where {P} = elsize(P) unaliascopy(A::ReshapedArray) = typeof(A)(unaliascopy(A.parent), A.dims, A.mi) dataids(A::ReshapedArray) = dataids(A.parent) -@inline ind2sub_rs(ax, ::Tuple{}, i::Int) = i +@inline ind2sub_rs(ax, ::Tuple{}, i::Int) = (i,) @inline ind2sub_rs(ax, strds, i) = _ind2sub_rs(ax, strds, i - 1) @inline _ind2sub_rs(ax, ::Tuple{}, ind) = (ind + first(ax[end]),) @inline function _ind2sub_rs(ax, strds, ind)