Skip to content

Commit 40345b0

Browse files
committed
Minor changes to copyto and correction of rebase copy
1 parent c1f44d6 commit 40345b0

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/array/copy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function darray_copyto!(B::DArray{TB,NB}, A::DArray{TA,NA}, Binds=parentindices(
127127
return B
128128
end
129129
function copyto_view!(Bpart, Brange, Apart, Arange)
130-
copyto!(view(Bpart, Brange...), view(Apart, Arange...))
130+
copyto!(view(Bpart, Brange), view(Apart, Arange))
131131
return
132132
end
133133

src/array/indexing.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,6 @@ function Base.setindex!(A::DArray, value, idx...)
139139
copyto!(A_view, value)
140140
return value
141141
end
142-
function Base.setindex!(A::DArray, value, idx...)
143-
inds = to_indices(A, idx)
144-
A_view = view(A, inds...)
145-
copyto!(A_view, value)
146-
return value
147-
end
148142

149143
### Allow/disallow scalar indexing
150144

0 commit comments

Comments
 (0)