summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-17 22:03:14 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-17 22:03:14 +0000
commitfb70fc4af2b4bfe221c70608998c7e9661dd84f3 (patch)
treeb78b74ac756f006dc9ccab7180e5c6ea3b8cdfc9 /ast.c
parentfea28863729f7a28b3a2bd0269d92d1d0c9ea348 (diff)
merge revision(s) 66819: [Backport #15532]
ast.c: fix missing head part in dynamic literal git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@66851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index 2df4bdd870..f0e8dd2eaf 100644
--- a/ast.c
+++ b/ast.c
@@ -525,7 +525,9 @@ node_children(rb_ast_t *ast, NODE *node)
goto dlit;
case NODE_DSYM:
dlit:
- return rb_ary_new_from_node_args(ast, 2, node->nd_next->nd_head, node->nd_next->nd_next);
+ return rb_ary_new_from_args(3, node->nd_lit,
+ NEW_CHILD(ast, node->nd_next->nd_head),
+ NEW_CHILD(ast, node->nd_next->nd_next));
case NODE_EVSTR:
return rb_ary_new_from_node_args(ast, 1, node->nd_body);
case NODE_ARGSCAT: