mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Right size the compile option hash
This commit is contained in:
parent
65744fb19e
commit
4480d68931
Notes:
git
2019-10-29 11:31:44 +09:00
1 changed files with 1 additions and 1 deletions
2
iseq.c
2
iseq.c
|
@ -720,7 +720,7 @@ make_compile_option(rb_compile_option_t *option, VALUE opt)
|
|||
static VALUE
|
||||
make_compile_option_value(rb_compile_option_t *option)
|
||||
{
|
||||
VALUE opt = rb_hash_new();
|
||||
VALUE opt = rb_hash_new_with_size(11);
|
||||
#define SET_COMPILE_OPTION(o, h, mem) \
|
||||
rb_hash_aset((h), ID2SYM(rb_intern(#mem)), (o)->mem ? Qtrue : Qfalse)
|
||||
#define SET_COMPILE_OPTION_NUM(o, h, mem) \
|
||||
|
|
Loading…
Add table
Reference in a new issue