Skip to content

Commit 308ccc0

Browse files
Fix off-by-one
1 parent fa45ae8 commit 308ccc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ _PyJit_translate_single_bytecode_to_trace(
619619

620620
/* Special case the first instruction,
621621
* so that we can guarantee forward progress */
622-
if (progress_needed && _tstate->jit_tracer_state.prev_state.code_curr_size <= CODE_SIZE_NO_PROGRESS) {
622+
if (progress_needed && _tstate->jit_tracer_state.prev_state.code_curr_size < CODE_SIZE_NO_PROGRESS) {
623623
if (OPCODE_HAS_EXIT(opcode) || OPCODE_HAS_DEOPT(opcode)) {
624624
opcode = _PyOpcode_Deopt[opcode];
625625
}

0 commit comments

Comments
 (0)