Skip to content

Commit

Permalink
Updated the assert checking Dict versions
Browse files Browse the repository at this point in the history
  • Loading branch information
eulerkochy committed Feb 19, 2019
1 parent 52bafeb commit 842fc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function rehash!(h::Dict{K,V}, newsz = length(h.keys)) where V where K
h.count = count
h.ndel = 0
h.maxprobe = maxprobe
@assert h.age == age0
h.age == age0 || error("versions of the dict do not match")

return h
end
Expand Down

0 comments on commit 842fc10

Please sign in to comment.