diff options
author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-09-05 13:58:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 13:58:16 -0400 |
commit | bdfa885f87b291dac8d0d390ba06b7f69f48da34 (patch) | |
tree | efb899effdc31a0a969e27c93fa15190e8c956e3 /yarp | |
parent | a17a1cd53573048ef3574fd105c297fadef9e934 (diff) |
[YARP] Fix aliasing instructions to use INT2FIX (#8373)
Notes
Notes:
Merged-By: jemmaissroff
Diffstat (limited to 'yarp')
-rw-r--r-- | yarp/yarp_compiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yarp/yarp_compiler.c b/yarp/yarp_compiler.c index 317c6aa1c6..59a1444f65 100644 --- a/yarp/yarp_compiler.c +++ b/yarp/yarp_compiler.c @@ -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); |