variable.c: first iv allocation size should be 4 instead of 1.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-12-03 15:38:16 +09:00
parent a20c2a08ab
commit d3ebe4894b
+1 -1
View File
@@ -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);