Skip to content

Commit

Permalink
Right size the iseq coverage branches tmp array - initializes with 5 …
Browse files Browse the repository at this point in the history
…elements
  • Loading branch information
methodmissing authored and shyouhei committed Oct 29, 2019
1 parent 0547627 commit 65744fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile.c
Expand Up @@ -273,7 +273,7 @@ const ID rb_iseq_shared_exc_local_tbl[] = {idERROR_INFO};
ISEQ_BRANCH_COVERAGE(iseq) && \
(first_line) > 0) { \
VALUE structure = RARRAY_AREF(ISEQ_BRANCH_COVERAGE(iseq), 0); \
branches = rb_ary_tmp_new(0); \
branches = rb_ary_tmp_new(5); \
rb_ary_push(structure, branches); \
rb_ary_push(branches, ID2SYM(rb_intern(type))); \
rb_ary_push(branches, INT2FIX(first_line)); \
Expand Down

0 comments on commit 65744fb

Please sign in to comment.