From a5de49152a2ab617441f9c4f648e7c3b25816ae7 Mon Sep 17 00:00:00 2001 From: timholy Date: Mon, 10 Nov 2014 22:12:47 -0600 Subject: [PATCH] Fix problem in getindex for DArrays --- base/darray.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/darray.jl b/base/darray.jl index 22e8114cd72b7..c96096209c923 100644 --- a/base/darray.jl +++ b/base/darray.jl @@ -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