diff options
author | Jemma Issroff <[email protected]> | 2023-10-18 18:53:02 -0300 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2023-10-18 17:16:11 -0700 |
commit | 10c5063704c5bb086825c5e2e26ab7cacb7dbd7a (patch) | |
tree | b071e00c704501c2970976b36de19fd20064e545 /compile.c | |
parent | 1701b79b54a067aa4767710fef6559a23573aed4 (diff) |
Address PR comments
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |