aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-10-18 18:53:02 -0300
committerAaron Patterson <aaron.patterson@gmail.com>2023-10-18 17:16:11 -0700
commit10c5063704c5bb086825c5e2e26ab7cacb7dbd7a (patch)
treeb071e00c704501c2970976b36de19fd20064e545 /compile.c
parent1701b79b54a067aa4767710fef6559a23573aed4 (diff)
downloadruby-10c5063704c5bb086825c5e2e26ab7cacb7dbd7a.tar.gz
Address PR comments
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/compile.c b/compile.c
index a097c29a0e..b806ced731 100644
--- a/compile.c
+++ b/compile.c
@@ -968,10 +968,10 @@ rb_iseq_compile_node(rb_iseq_t *iseq, const NODE *node)
return iseq_setup(iseq, ret);
}
-static VALUE rb_translate_prism(rb_iseq_t *iseq, const pm_scope_node_t node, LINK_ANCHOR *const ret);
+static VALUE rb_translate_prism(rb_iseq_t *iseq, const pm_scope_node_t *scope_node, LINK_ANCHOR *const ret);
VALUE
-rb_iseq_compile_prism_node(rb_iseq_t * iseq, pm_scope_node_t scope_node, pm_parser_t *parser)
+rb_iseq_compile_prism_node(rb_iseq_t * iseq, pm_scope_node_t *scope_node, pm_parser_t *parser)
{
DECL_ANCHOR(ret);
INIT_ANCHOR(ret);
@@ -984,7 +984,7 @@ rb_iseq_compile_prism_node(rb_iseq_t * iseq, pm_scope_node_t scope_node, pm_pars
constants[index] = rb_intern3((const char *) constant->start, constant->length, encoding);
}
- scope_node.constants = (void *)constants;
+ scope_node->constants = (void *)constants;
CHECK(rb_translate_prism(iseq, scope_node, ret));
free(constants);