diff options
author | yui-knk <[email protected]> | 2023-09-30 22:05:10 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2023-10-01 19:38:03 +0900 |
commit | 08239fd6af915d8a55c1e63c339cf749fecd0cae (patch) | |
tree | bc5c3d5f3f6b9bb1e504f3da035cf70e94497051 /compile.c | |
parent | b0d7935e800a2dd2556728bc463b5ed92f193f1b (diff) |
Use rb_node_args_t and rb_node_args_aux_t instead of NODE
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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), |