Skip to content

Commit a8e30a8

Browse files
make copy times more specific
1 parent 9c3950a commit a8e30a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/RecursiveArrayTools.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ module RecursiveArrayTools
4545
recursivecopy!(a[i],x)
4646
end
4747
else
48-
if eltype(x) <: Number
48+
if eltype(x) <: Number && x <: Array
49+
# Have to check that it's <: Array or can have problems
50+
# with abstract arrays like MultiScaleModels.
4951
push!(a,copy(x))
5052
else
5153
push!(a,deepcopy(x))

0 commit comments

Comments
 (0)