Skip to content

Commit 9c86b0e

Browse files
authored
Use copymutable in setindex
1 parent f8d1182 commit 9c86b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArrayInterface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ end
158158

159159
# Piracy
160160
function Base.setindex(x::AbstractArray, v, i...)
161-
_x = copy(x)
161+
_x = Base.copymutable(x)
162162
_x[i...] = v
163163
return _x
164164
end

0 commit comments

Comments
 (0)