mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Fix BINARY_SUBSCR_GETITEM stats (GH-93903)
This commit is contained in:
parent
d5be9a5dff
commit
ab45c1dde0
2 changed files with 7 additions and 7 deletions
|
@ -1212,7 +1212,8 @@ _Py_Specialize_BinarySubscr(
|
|||
write_u32(cache->type_version, cls->tp_version_tag);
|
||||
int version = _PyFunction_GetVersionForCurrentState(func);
|
||||
if (version == 0 || version != (uint16_t)version) {
|
||||
SPECIALIZATION_FAIL(BINARY_SUBSCR, SPEC_FAIL_OUT_OF_VERSIONS);
|
||||
SPECIALIZATION_FAIL(BINARY_SUBSCR, version == 0 ?
|
||||
SPEC_FAIL_OUT_OF_VERSIONS : SPEC_FAIL_OUT_OF_RANGE);
|
||||
goto fail;
|
||||
}
|
||||
cache->func_version = version;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue