Skip to content

Commit

Permalink
Fix bug in more-than-6D SubArray indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobaldassi committed Mar 3, 2014
1 parent 837cb7e commit d36bb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/subarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ getindex(s::SubArray, i0::Real, i1::Real, i2::Real, i3::Real, i4::Real) =
getindex(s::SubArray, i0::Real, i1::Real, i2::Real, i3::Real, i4::Real, i5::Real) =
getindex(s, to_index(i0), to_index(i1), to_index(i2), to_index(i3), to_index(i4), to_index(i5))
getindex(s::SubArray, i0::Real, i1::Real, i2::Real, i3::Real, i4::Real, i5::Real, is::Int...) =
getindex(s, to_index(i0), to_index(i1), to_index(i2), to_index(i3), to_index(i4), to_index(5), is...)
getindex(s, to_index(i0), to_index(i1), to_index(i2), to_index(i3), to_index(i4), to_index(i5), is...)

getindex(s::SubArray, i::Integer) = s[ind2sub(size(s), i)...]

Expand Down

0 comments on commit d36bb08

Please sign in to comment.