Skip to content

Commit

Permalink
Merge pull request #789 from dantaras/issue-788
Browse files Browse the repository at this point in the history
Resize to new size. Fixes #788
  • Loading branch information
eulerkochy authored Jan 5, 2024
2 parents 83ecd27 + ef2f107 commit f51727d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/robin_dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ function rehash!(h::RobinDict{K,V}, newsz = length(h.keys)) where {K, V}
sz = length(oldk)
newsz = _tablesz(newsz)
if h.count == 0
resize!(h.keys, sz)
resize!(h.vals, sz)
resize!(h.keys, newsz)
resize!(h.vals, newsz)
resize!(h.hashes, newsz)
fill!(h.hashes, 0)
h.count = 0
Expand Down

0 comments on commit f51727d

Please sign in to comment.