Skip to content

Commit

Permalink
fix if
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Dec 5, 2016
1 parent a8e30a8 commit 9eaea85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RecursiveArrayTools.jl
Expand Up @@ -45,7 +45,7 @@ module RecursiveArrayTools
recursivecopy!(a[i],x)
end
else
if eltype(x) <: Number && x <: Array
if eltype(x) <: Number && typeof(x) <: Array
# Have to check that it's <: Array or can have problems
# with abstract arrays like MultiScaleModels.
push!(a,copy(x))
Expand Down

0 comments on commit 9eaea85

Please sign in to comment.