1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

node.c: mark u3 of NODE_MATCH2

* node.c (rb_gc_mark_node): NODE_MATCH2 can have nd_args, u3,
  since r54100.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-03-21 09:55:50 +00:00
parent d5a9735112
commit 90c543e483
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Mar 21 18:55:49 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* node.c (rb_gc_mark_node): NODE_MATCH2 can have nd_args, u3,
since r54100.
Sun Mar 20 21:17:13 2016 NAKAMURA Usaku <usa@ruby-lang.org>
* internal.h (rb_int128t2big): declare only when HAVE_INT128_T.

2
node.c
View file

@ -1026,6 +1026,7 @@ rb_gc_mark_node(NODE *obj)
case NODE_RESBODY:
case NODE_CLASS:
case NODE_BLOCK_PASS:
case NODE_MATCH2:
rb_gc_mark(RNODE(obj)->u2.value);
/* fall through */
case NODE_BLOCK: /* 1,3 */
@ -1056,7 +1057,6 @@ rb_gc_mark_node(NODE *obj)
case NODE_DOT3:
case NODE_FLIP2:
case NODE_FLIP3:
case NODE_MATCH2:
case NODE_MATCH3:
case NODE_OP_ASGN_OR:
case NODE_OP_ASGN_AND: