From bb5ed8b3df9151d5bfadf13622c53888e140ea73 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Thu, 11 Apr 2024 10:21:11 -0400 Subject: [PRISM] Fix flags on local variable operator write nodes --- prism_compile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/prism_compile.c b/prism_compile.c index 2a13e1812d..6fd9d35357 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -6381,8 +6381,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, PM_COMPILE_NOT_POPPED(cast->value); ID method_id = pm_constant_id_lookup(scope_node, cast->operator); - int flags = VM_CALL_ARGS_SIMPLE | VM_CALL_FCALL | VM_CALL_VCALL; - PUSH_SEND_WITH_FLAG(ret, location, method_id, INT2NUM(1), INT2FIX(flags)); + PUSH_SEND_WITH_FLAG(ret, location, method_id, INT2NUM(1), INT2FIX(VM_CALL_ARGS_SIMPLE)); if (!popped) PUSH_INSN(ret, location, dup); PUSH_SETLOCAL(ret, location, local_index.index, local_index.level); -- cgit v1.2.3