diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-10-30 00:19:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-10-30 00:19:43 +0900 |
commit | 13c9cbe09ef310c7ddf055d57ebf4586e9f9a111 (patch) | |
tree | 1edb88744db0cb8d95b7d0d3e2dc045751a68fc4 /compile.c | |
parent | fbd55120f3c58dc7d16b3870a8f36f07277bb338 (diff) |
Embed `rb_args_info` in `rb_node_args_t`
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1995,7 +1995,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *const optargs, const NODE *cons if (node_args) { struct rb_iseq_constant_body *const body = ISEQ_BODY(iseq); - struct rb_args_info *args = RNODE_ARGS(node_args)->nd_ainfo; + struct rb_args_info *args = &RNODE_ARGS(node_args)->nd_ainfo; ID rest_id = 0; int last_comma = 0; ID block_id = 0; @@ -8377,7 +8377,7 @@ compile_builtin_mandatory_only_method(rb_iseq_t *iseq, const NODE *node, const N }; rb_node_args_t args_node; rb_node_init(RNODE(&args_node), NODE_ARGS); - args_node.nd_ainfo = &args; + args_node.nd_ainfo = args; // local table without non-mandatory parameters const int skip_local_size = ISEQ_BODY(iseq)->param.size - ISEQ_BODY(iseq)->param.lead_num; |