aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-21 09:55:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-21 09:55:50 +0000
commit6ba4e5da0f748e09b06d6ddf544491ca890e340b (patch)
tree714e79f4471399ffb046abb263076f3b373f65f2 /node.c
parent6063615420b71824d2b80a1e2dae7fc53ea37a04 (diff)
downloadruby-6ba4e5da0f748e09b06d6ddf544491ca890e340b.tar.gz
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
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.c b/node.c
index 01a496977b..40cb5a952a 100644
--- a/node.c
+++ b/node.c
@@ -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: