From 2002f530dcddd40b95ae96f6ff0c51b07184c71c Mon Sep 17 00:00:00 2001 From: youknowdot Date: Sat, 10 Oct 2026 01:00:58 +0900 Subject: [PATCH] Limit in-place specialization additions to exact sequence repetition Assisted-by: OpenAI Codex:model identifier unavailable --- crates/vm/src/frame.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/vm/src/frame.rs b/crates/vm/src/frame.rs index bf890cf92..2678b4047 100644 --- a/crates/vm/src/frame.rs +++ b/crates/vm/src/frame.rs @@ -10763,7 +10763,9 @@ impl ExecutingFrame<'_> { && b.downcast_ref_if_exact::(vm).is_some() { Some(Instruction::BinaryOpMultiplyFloat) - } else if let Some(descr) = self.binary_op_extended_specialization(op, a, b, vm) { + } else if (sequence_int_guard(a, b, vm) || int_sequence_guard(a, b, vm)) + && let Some(descr) = self.binary_op_extended_specialization(op, a, b, vm) + { cached_extend_descr = Some(descr); Some(Instruction::BinaryOpExtend) } else {