diff options
author | Gerd Moellmann <gerd@gnu.org> | 2000-02-29 09:30:43 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2000-02-29 09:30:43 +0000 |
commit | 0d6ba42e4997e0a440f9eb64b269e81e31f48d38 (patch) | |
tree | 4ead04595a4fd63dfa4602949fa156b777c53c2d /src/fns.c | |
parent | 635270b6666448d78a2a81045a303ed81b08f773 (diff) | |
download | emacs-0d6ba42e4997e0a440f9eb64b269e81e31f48d38.tar.gz |
(maybe_resize_hash_table): Handle case of new size
coming out as being the same as old size.
Diffstat (limited to 'src/fns.c')
-rw-r--r-- | src/fns.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c index e6ff6835947..9c06764bdb3 100644 --- a/src/fns.c +++ b/src/fns.c @@ -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) |