Skip to content

Commit 548b67c

Browse files
add bool type
1 parent 4116a31 commit 548b67c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/optimizer_symbols.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ _Py_uop_sym_is_safe_const(JitOptContext *ctx, JitOptSymbol *sym)
196196
return (typ == &PyLong_Type) ||
197197
(typ == &PyUnicode_Type) ||
198198
(typ == &PyFloat_Type) ||
199-
(typ == &PyTuple_Type);
199+
(typ == &PyTuple_Type) ||
200+
(typ == &PyBool_Type);
200201
}
201202

202203
void

0 commit comments

Comments
 (0)