From d3ebe4894b629d0333f746bb6bec3623dc89b69e Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 3 Dec 2021 15:38:16 +0900 Subject: variable.c: first iv allocation size should be 4 instead of 1. --- src/variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/variable.c b/src/variable.c index 1130b7aaf..bef0f0823 100644 --- a/src/variable.c +++ b/src/variable.c @@ -39,7 +39,7 @@ static void iv_rehash(mrb_state *mrb, iv_tbl *t) { size_t old_alloc = t->alloc; - size_t new_alloc = old_alloc+1; + size_t new_alloc = old_alloc+4; mrb_value *old_ptr = t->ptr; khash_power2(new_alloc); -- cgit v1.2.3