aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-09-30 22:05:10 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-10-01 19:38:03 +0900
commit08239fd6af915d8a55c1e63c339cf749fecd0cae (patch)
treebc5c3d5f3f6b9bb1e504f3da035cf70e94497051 /compile.c
parentb0d7935e800a2dd2556728bc463b5ed92f193f1b (diff)
downloadruby-08239fd6af915d8a55c1e63c339cf749fecd0cae.tar.gz
Use rb_node_args_t and rb_node_args_aux_t instead of NODE
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index e456baca2d..14c0589fe1 100644
--- a/compile.c
+++ b/compile.c
@@ -754,7 +754,7 @@ rb_iseq_compile_node(rb_iseq_t *iseq, const NODE *node)
else if (nd_type_p(node, NODE_SCOPE)) {
/* iseq type of top, method, class, block */
iseq_set_local_table(iseq, RNODE_SCOPE(node)->nd_tbl);
- iseq_set_arguments(iseq, ret, RNODE_SCOPE(node)->nd_args);
+ iseq_set_arguments(iseq, ret, (NODE *)RNODE_SCOPE(node)->nd_args);
switch (ISEQ_BODY(iseq)->type) {
case ISEQ_TYPE_BLOCK:
@@ -8294,7 +8294,7 @@ compile_builtin_mandatory_only_method(rb_iseq_t *iseq, const NODE *node, const N
rb_node_init(RNODE(&scope_node), NODE_SCOPE);
scope_node.nd_tbl = tbl;
scope_node.nd_body = mandatory_node(iseq, node);
- scope_node.nd_args = RNODE(&args_node);
+ scope_node.nd_args = &args_node;
rb_ast_body_t ast = {
.root = RNODE(&scope_node),