From 7ab76a8fcbc8388a54cc0ca3caaaac5a56bbe680 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sun, 26 Oct 2025 00:57:30 +0100 Subject: [PATCH] fix no-opt JIT --- Python/optimizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index 995ddee86058..f745f16fcf30 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -690,7 +690,7 @@ _PyJit_translate_single_bytecode_to_trace( } // One for possible _DEOPT, one because _CHECK_VALIDITY itself might _DEOPT - max_length -= 1; + max_length -= 2; const struct opcode_macro_expansion *expansion = &_PyOpcode_macro_expansion[opcode]; -- 2.47.3