Commit 0d6ba42e authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(maybe_resize_hash_table): Handle case of new size

coming out as being the same as old size.
parent 635270b6
......@@ -3826,6 +3826,7 @@ maybe_resize_hash_table (h)
new_size = old_size + XFASTINT (h->rehash_size);
else
new_size = old_size * XFLOATINT (h->rehash_size);
new_size = max (old_size + 1, new_size);
index_size = next_almost_prime (new_size
/ XFLOATINT (h->rehash_threshold));
if (max (index_size, 2 * new_size) & ~VALMASK)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment