Skip to content

Commit 4fb5404

Browse files
committed
Update for SubArray change
cf. JuliaLang/julia#17228 (comment)
1 parent 474b93c commit 4fb5404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DistributedArrays.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ end
550550

551551
function Base.convert{T,N}(::Type{DArray}, SD::SubArray{T,N})
552552
D = SD.parent
553-
DArray(SD.dims, procs(D)) do I
553+
DArray(size(SD), procs(D)) do I
554554
TR = typeof(SD.indexes[1])
555555
lindices = Array(TR, 0)
556556
for (i,r) in zip(I, SD.indexes)

0 commit comments

Comments
 (0)