Skip to content

Commit f51727d

Browse files
authored
Merge pull request #789 from dantaras/issue-788
Resize to new size. Fixes #788
2 parents 83ecd27 + ef2f107 commit f51727d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/robin_dict.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ function rehash!(h::RobinDict{K,V}, newsz = length(h.keys)) where {K, V}
200200
sz = length(oldk)
201201
newsz = _tablesz(newsz)
202202
if h.count == 0
203-
resize!(h.keys, sz)
204-
resize!(h.vals, sz)
203+
resize!(h.keys, newsz)
204+
resize!(h.vals, newsz)
205205
resize!(h.hashes, newsz)
206206
fill!(h.hashes, 0)
207207
h.count = 0

0 commit comments

Comments
 (0)