diff --git a/prism_compile.c b/prism_compile.c index 46ce25e4855788..e325a6e118d286 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -6512,7 +6512,6 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, // We will assign these values now, if applicable, and use them for // the ISEQs on these multis - int required_multis_hidden_index = local_index; int post_multis_hidden_index = 0; // Here we figure out local table indices and insert them in to the @@ -7026,7 +7025,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, const pm_node_t *required = requireds_list->nodes[i]; if (PM_NODE_TYPE_P(required, PM_MULTI_TARGET_NODE)) { - ADD_GETLOCAL(ret, &dummy_line_node, table_size - required_multis_hidden_index - (int) i, 0); + ADD_GETLOCAL(ret, &dummy_line_node, table_size - (int)i, 0); pm_compile_destructured_param_writes(iseq, (const pm_multi_target_node_t *) required, ret, scope_node); } }