summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-04-11 10:21:11 -0400
committerKevin Newton <kddnewton@gmail.com>2024-04-11 12:18:51 -0400
commitbb5ed8b3df9151d5bfadf13622c53888e140ea73 (patch)
tree3b95027b054f9a475e91925f5b833d9ecb417579
parentf2369de2a4a0ffc5e40f6d55fa3ae811128432db (diff)
[PRISM] Fix flags on local variable operator write nodes
-rw-r--r--prism_compile.c3
1 files changed, 1 insertions, 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);