aboutsummaryrefslogtreecommitdiffstats
path: root/ast.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-30 00:19:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-10-30 00:19:43 +0900
commit13c9cbe09ef310c7ddf055d57ebf4586e9f9a111 (patch)
tree1edb88744db0cb8d95b7d0d3e2dc045751a68fc4 /ast.c
parentfbd55120f3c58dc7d16b3870a8f36f07277bb338 (diff)
downloadruby-13c9cbe09ef310c7ddf055d57ebf4586e9f9a111.tar.gz
Embed `rb_args_info` in `rb_node_args_t`
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ast.c b/ast.c
index c71b7b3987..6d2ca17ca7 100644
--- a/ast.c
+++ b/ast.c
@@ -639,7 +639,7 @@ node_children(rb_ast_t *ast, const NODE *node)
NEW_CHILD(ast, RNODE_POSTARG(node)->nd_2nd));
case NODE_ARGS:
{
- struct rb_args_info *ainfo = RNODE_ARGS(node)->nd_ainfo;
+ struct rb_args_info *ainfo = &RNODE_ARGS(node)->nd_ainfo;
return rb_ary_new_from_args(10,
INT2NUM(ainfo->pre_args_num),
NEW_CHILD(ast, ainfo->pre_init),