Skip to content

Commit

Permalink
DArray: Fix mutation in setindex
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsamaroo committed Apr 2, 2024
1 parent 3c80e3a commit 5d31832
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/array/setindex.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export setindex

struct SetIndex{T,N} <: ArrayOp{T,N}
Expand Down Expand Up @@ -41,6 +40,6 @@ function stage(ctx::Context, sidx::SetIndex)
q
end
end
inp.chunks = ps
inp

return DArray(eltype(inp), d, subdmns, ps, inp.partitioning)
end

0 comments on commit 5d31832

Please sign in to comment.