Skip to content

Commit d7f992b

Browse files
authored
RobinDict empty! not zeroing hashes bugfix
1 parent 26baab4 commit d7f992b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/robin_dict.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ function empty!(h::RobinDict{K,V}) where {K, V}
285285
resize!(h.keys, sz)
286286
resize!(h.vals, sz)
287287
resize!(h.hashes, sz)
288+
fill!(h.hashes, 0)
288289
h.count = 0
289290
h.idxfloor = 0
290291
return h

0 commit comments

Comments
 (0)