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 20, 2014
1 parent e0e4218 commit a5de491
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 a5de491

Please sign in to comment.