Skip to content

Commit

Permalink
Fix problem in getindex for DArrays
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Nov 11, 2014
1 parent de15dce commit f6210cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/darray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function getindex_tuple{T}(d::DArray{T}, I::(Int...))
end

getindex(d::DArray) = d[1]
getindex(d::DArray, I::Union(Int,UnitRange{Int})...) = sub(d,I)
getindex(d::DArray, I::Union(Int,UnitRange{Int})...) = sub(d,I...)

copy(d::SubOrDArray) = d

Expand Down

0 comments on commit f6210cd

Please sign in to comment.