Skip to content

Commit 8fdf7cc

Browse files
namespace ismutable
1 parent c47e08b commit 8fdf7cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

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

5757
function copyat_or_push!(a::AbstractVector{T},i::Int,x,nc::Type{Val{perform_copy}}=Val{true}) where {T,perform_copy}
5858
@inbounds if length(a) >= i
59-
if !ismutable(T) || !perform_copy
59+
if !ArrayInterface.ismutable(T) || !perform_copy
6060
# TODO: Check for `setindex!`` if T <: StaticArray and use `copy!(b[i],a[i])`
6161
# or `b[i] = a[i]`, see https://github.com/JuliaDiffEq/RecursiveArrayTools.jl/issues/19
6262
a[i] = x

0 commit comments

Comments
 (0)