Skip to content

Commit

Permalink
[YARP] Fix aliasing instructions to use INT2FIX (#8373)
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmaissroff committed Sep 5, 2023
1 parent a17a1cd commit bdfa885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarp/yarp_compiler.c
Expand Up @@ -421,8 +421,8 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,
case YP_NODE_ALIAS_NODE: {
yp_alias_node_t *alias_node = (yp_alias_node_t *) node;

ADD_INSN1(ret, &dummy_line_node, putspecialobject, VM_SPECIAL_OBJECT_VMCORE);
ADD_INSN1(ret, &dummy_line_node, putspecialobject, VM_SPECIAL_OBJECT_CBASE);
ADD_INSN1(ret, &dummy_line_node, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
ADD_INSN1(ret, &dummy_line_node, putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_CBASE));

yp_compile_node(iseq, alias_node->new_name, ret, src, popped, compile_context);
yp_compile_node(iseq, alias_node->old_name, ret, src, popped, compile_context);
Expand Down

0 comments on commit bdfa885

Please sign in to comment.