Skip to content

Commit ccd675d

Browse files
dantarasKoustav Chowdhury
authored andcommitted
Resize to new size. Fixes #788
1 parent 64e2230 commit ccd675d

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
@@ -197,8 +197,8 @@ function rehash!(h::RobinDict{K,V}, newsz = length(h.keys)) where {K, V}
197197
sz = length(oldk)
198198
newsz = _tablesz(newsz)
199199
if h.count == 0
200-
resize!(h.keys, sz)
201-
resize!(h.vals, sz)
200+
resize!(h.keys, newsz)
201+
resize!(h.vals, newsz)
202202
resize!(h.hashes, newsz)
203203
fill!(h.hashes, 0)
204204
h.count = 0

0 commit comments

Comments
 (0)