summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class.c b/src/class.c
index 90baa05eb..76a9dadf3 100644
--- a/src/class.c
+++ b/src/class.c
@@ -62,7 +62,7 @@ static void
mt_rehash(mrb_state *mrb, mt_tbl *t)
{
size_t old_alloc = t->alloc;
- size_t new_alloc = old_alloc+1;
+ size_t new_alloc = old_alloc+8;
struct mt_elem *old_table = t->table;
khash_power2(new_alloc);