Skip to content

Commit

Permalink
fix an invalidation source in the TOML parser (#37604)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Sep 16, 2020
1 parent e84fec4 commit 55bfc3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/toml_parser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -660,13 +660,13 @@ function push!!(v::Vector, el)
return v
else
if typeof(T) === Union
newT = Base.typejoin(T, typeof(el))
newT = Any
else
newT = Union{T, typeof(el)}
end
new = Array{newT}(undef, length(v))
copy!(new, v)
return push!!(new, el)
return push!(new, el)
end
end

Expand Down

0 comments on commit 55bfc3f

Please sign in to comment.