We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ab270 commit f2d4552Copy full SHA for f2d4552
Python/optimizer_bytecodes.c
@@ -160,7 +160,8 @@ dummy_func(void) {
160
PyTypeObject *ltype = sym_get_type(left);
161
PyTypeObject *rtype = sym_get_type(right);
162
if (ltype != NULL && (ltype == &PyLong_Type || ltype == &PyFloat_Type) &&
163
- rtype != NULL && (rtype == &PyLong_Type || rtype == &PyFloat_Type)) {
+ rtype != NULL && (rtype == &PyLong_Type || rtype == &PyFloat_Type))
164
+ {
165
if (oparg != NB_TRUE_DIVIDE && oparg != NB_INPLACE_TRUE_DIVIDE &&
166
ltype == &PyLong_Type && rtype == &PyLong_Type) {
167
/* If both inputs are ints and the op is not division the result is an int */
0 commit comments