Skip to content

Commit f2d4552

Browse files
Update Python/optimizer_bytecodes.c
Co-authored-by: Guido van Rossum <[email protected]>
1 parent f1ab270 commit f2d4552

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/optimizer_bytecodes.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ dummy_func(void) {
160160
PyTypeObject *ltype = sym_get_type(left);
161161
PyTypeObject *rtype = sym_get_type(right);
162162
if (ltype != NULL && (ltype == &PyLong_Type || ltype == &PyFloat_Type) &&
163-
rtype != NULL && (rtype == &PyLong_Type || rtype == &PyFloat_Type)) {
163+
rtype != NULL && (rtype == &PyLong_Type || rtype == &PyFloat_Type))
164+
{
164165
if (oparg != NB_TRUE_DIVIDE && oparg != NB_INPLACE_TRUE_DIVIDE &&
165166
ltype == &PyLong_Type && rtype == &PyLong_Type) {
166167
/* If both inputs are ints and the op is not division the result is an int */

0 commit comments

Comments
 (0)