Skip to content

Commit

Permalink
Merge pull request #889 from eulerkochy/release-0.18
Browse files Browse the repository at this point in the history
[Backport] Bugfix for resize in RobinDict
  • Loading branch information
eulerkochy authored Jan 5, 2024
2 parents 64e2230 + 72af1f6 commit 685f7bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "DataStructures"
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
version = "0.18.15"
version = "0.18.16"

[deps]
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Expand Down
4 changes: 2 additions & 2 deletions src/robin_dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,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 685f7bc

Please sign in to comment.