Skip to content

Commit 5d31832

Browse files
committed
DArray: Fix mutation in setindex
1 parent 3c80e3a commit 5d31832

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: src/array/setindex.jl

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
export setindex
32

43
struct SetIndex{T,N} <: ArrayOp{T,N}
@@ -41,6 +40,6 @@ function stage(ctx::Context, sidx::SetIndex)
4140
q
4241
end
4342
end
44-
inp.chunks = ps
45-
inp
43+
44+
return DArray(eltype(inp), d, subdmns, ps, inp.partitioning)
4645
end

0 commit comments

Comments
 (0)