summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 9740e02d59..d44c979e19 100644
--- a/st.c
+++ b/st.c
@@ -2292,7 +2292,7 @@ rb_hash_bulk_insert(long argc, const VALUE *argv, VALUE hash)
RHASH(hash)->ntbl = tab = RHASH(tmp)->ntbl;
RHASH(tmp)->ntbl = NULL;
}
- n = tab->num_entries + argc / 2;
+ n = tab->entries_bound + argc / 2;
st_expand_table(tab, n);
if (UNLIKELY(tab->num_entries))
st_insert_generic(tab, argc, argv, hash);