diff options
author | Lourens Naudé <lourens@bearmetal.eu> | 2019-09-11 00:18:41 +0100 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-10-11 11:15:43 +0900 |
commit | 0ca4f74967bb5a439b1f3d322ae7729265b917a4 (patch) | |
tree | fe998a4c4e79771a850727c8e62ba28412a38662 /compile.c | |
parent | 87958520f3fd7fdec18c3508888b3d2a4e5c27a4 (diff) |
Right size the numtable in insn_make_insn_table to VM_INSTRUCTION_SIZE
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2447
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |