Skip to content

Commit

Permalink
[PRISM] Use PM_POP macro
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Jan 22, 2024
1 parent 7db6832 commit 789de59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prism_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2716,7 +2716,7 @@ pm_compile_call(rb_iseq_t *iseq, const pm_call_node_t *call_node, LINK_ANCHOR *c
ADD_INSN1(ret, &dummy_line_node, putobject, INT2FIX(-1));
ADD_SEND_WITH_FLAG(ret, &dummy_line_node, idAREF, INT2FIX(1), INT2FIX(0));
ADD_INSN1(ret, &dummy_line_node, setn, INT2FIX(orig_argc + 2));
ADD_INSN (ret, &dummy_line_node, pop);
PM_POP;
}
else if (!popped) {
ADD_INSN1(ret, &dummy_line_node, setn, INT2FIX(orig_argc + 1));
Expand Down Expand Up @@ -3349,7 +3349,7 @@ pm_compile_for_node_index(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *c
ADD_INSN(ret, &dummy_line_node, swap);

ADD_LABEL(ret, not_ary);
ADD_INSN(ret, &dummy_line_node, pop);
PM_POP;

ADD_LABEL(ret, not_single);
ADD_SEQ(ret, writes);
Expand Down

0 comments on commit 789de59

Please sign in to comment.