Skip to content

Commit f6210cd

Browse files
committed
Fix problem in getindex for DArrays
1 parent de15dce commit f6210cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/darray.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function getindex_tuple{T}(d::DArray{T}, I::(Int...))
243243
end
244244

245245
getindex(d::DArray) = d[1]
246-
getindex(d::DArray, I::Union(Int,UnitRange{Int})...) = sub(d,I)
246+
getindex(d::DArray, I::Union(Int,UnitRange{Int})...) = sub(d,I...)
247247

248248
copy(d::SubOrDArray) = d
249249

0 commit comments

Comments
 (0)