Skip to content

Commit 1dce1aa

Browse files
committed
gh-132732: Treat bytes as constants in _Py_uop_sym_is_safe_const
1 parent 695ab61 commit 1dce1aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/optimizer_symbols.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ _Py_uop_sym_is_safe_const(JitOptContext *ctx, JitOptRef sym)
209209
PyTypeObject *typ = Py_TYPE(const_val);
210210
return (typ == &PyLong_Type) ||
211211
(typ == &PyUnicode_Type) ||
212+
(typ == &PyBytes_Type) ||
212213
(typ == &PyFloat_Type) ||
213214
(typ == &PyTuple_Type) ||
214215
(typ == &PyBool_Type);

0 commit comments

Comments
 (0)