| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -206,9 +206,11 @@ _Py_uop_sym_is_safe_const(JitOptContext *ctx, JitOptRef sym) | |||
| 206 | 206 | if (const_val == NULL) { | |
| 207 | 207 | return false; | |
| 208 | 208 | } | |
| 209 | + if (_PyLong_CheckExactAndCompact(const_val)) { | ||
| 210 | + return true; | ||
| 211 | + } | ||
| 209 | 212 | PyTypeObject *typ = Py_TYPE(const_val); | |
| 210 | - return (typ == &PyLong_Type) || | ||
| 211 | - (typ == &PyUnicode_Type) || | ||
| 213 | + return (typ == &PyUnicode_Type) || | ||
| 212 | 214 | (typ == &PyFloat_Type) || | |
| 213 | 215 | (typ == &PyTuple_Type) || | |
| 214 | 216 | (typ == &PyBool_Type); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments