Skip to content

Commit

Permalink
Don't splat a number in ReshapedArray (#29677)
Browse files Browse the repository at this point in the history
Work around for #29675.

(cherry picked from commit 2a9271a)
  • Loading branch information
mbauman authored and KristofferC committed Oct 19, 2018
1 parent 03ecf81 commit 9b2d636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/reshapedarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,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)
Expand Down

0 comments on commit 9b2d636

Please sign in to comment.