mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Right size the numtable in insn_make_insn_table to VM_INSTRUCTION_SIZE
This commit is contained in:
parent
87958520f3
commit
0ca4f74967
Notes:
git
2019-10-11 11:16:09 +09:00
1 changed files with 1 additions and 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);
|
||||
|
|
Loading…
Add table
Reference in a new issue