Skip to content

Commit

Permalink
also skip jl_arrayunset for isbitsunion
Browse files Browse the repository at this point in the history
  • Loading branch information
chethega committed Nov 21, 2018
1 parent 6d94a87 commit 72fdb29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ end

function _delete!(h::Dict{K,V}, index) where {K,V}
@inbounds h.slots[index] = 0x2
isbitstype(K) || ccall(:jl_arrayunset, Cvoid, (Any, UInt), h.keys, index-1)
isbitstype(V) || ccall(:jl_arrayunset, Cvoid, (Any, UInt), h.vals, index-1)
isbitstype(K) || || isbitsunion(K) || ccall(:jl_arrayunset, Cvoid, (Any, UInt), h.keys, index-1)
isbitstype(V) || isbitsunion(V) || ccall(:jl_arrayunset, Cvoid, (Any, UInt), h.vals, index-1)
h.ndel += 1
h.count -= 1
h.age += 1
Expand Down

0 comments on commit 72fdb29

Please sign in to comment.