From ccd675d8155112091efda3313455e9400e8402fc Mon Sep 17 00:00:00 2001 From: Dan Taras Date: Wed, 9 Feb 2022 13:42:50 +0100 Subject: [PATCH 1/2] Resize to new size. Fixes #788 --- src/robin_dict.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/robin_dict.jl b/src/robin_dict.jl index 8cec85205..cc96cfa52 100644 --- a/src/robin_dict.jl +++ b/src/robin_dict.jl @@ -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 From 72af1f6b65036c0cc1e11f2c8ef8d7475cc3b035 Mon Sep 17 00:00:00 2001 From: Koustav Chowdhury Date: Fri, 5 Jan 2024 10:56:58 +0530 Subject: [PATCH 2/2] bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 3f3dbe55d..1e64c6812 100644 --- a/Project.toml +++ b/Project.toml @@ -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"