Skip to content

Commit 2a8072c

Browse files
committed
Don't defer operators that can't be specialized
1 parent f5b1923 commit 2a8072c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/specialize.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,8 @@ _Py_Specialize_BinaryOp(PyObject *lhs, PyObject *rhs, _Py_CODEUNIT *instr,
14201420
goto success;
14211421
}
14221422
break;
1423+
default:
1424+
*instr = _Py_MAKECODEUNIT(BINARY_OP, adaptive->original_oparg);
14231425
}
14241426
SPECIALIZATION_FAIL(BINARY_OP, SPEC_FAIL_OTHER);
14251427
failure:

0 commit comments

Comments
 (0)