aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorLourens Naudé <lourens@bearmetal.eu>2019-09-11 00:18:41 +0100
committer卜部昌平 <shyouhei@ruby-lang.org>2019-10-11 11:15:43 +0900
commit0ca4f74967bb5a439b1f3d322ae7729265b917a4 (patch)
treefe998a4c4e79771a850727c8e62ba28412a38662 /compile.c
parent87958520f3fd7fdec18c3508888b3d2a4e5c27a4 (diff)
downloadruby-0ca4f74967bb5a439b1f3d322ae7729265b917a4.tar.gz
Right size the numtable in insn_make_insn_table to VM_INSTRUCTION_SIZE
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index df7f467c81..53d88eef7f 100644
--- a/compile.c
+++ b/compile.c
@@ -8647,7 +8647,7 @@ insn_make_insn_table(void)
{
struct st_table *table;
int i;
- table = st_init_numtable();
+ table = st_init_numtable_with_size(VM_INSTRUCTION_SIZE);
for (i=0; i<VM_INSTRUCTION_SIZE; i++) {
st_insert(table, ID2SYM(rb_intern(insn_name(i))), i);