mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
gh-104184: fix building --with-pydebug --enable-pystats (#104217)
This commit is contained in:
parent
82f789be3b
commit
afe7703744
1 changed files with 1 additions and 1 deletions
|
@ -1455,7 +1455,7 @@ _Py_Specialize_StoreSubscr(PyObject *container, PyObject *sub, _Py_CODEUNIT *ins
|
|||
goto fail;
|
||||
}
|
||||
if (PyObject_CheckBuffer(container)) {
|
||||
if (PyLong_CheckExact(sub) && (((size_t)Py_SIZE(sub)) > 1)) {
|
||||
if (PyLong_CheckExact(sub) && (!_PyLong_IsNonNegativeCompact((PyLongObject *)sub))) {
|
||||
SPECIALIZATION_FAIL(STORE_SUBSCR, SPEC_FAIL_OUT_OF_RANGE);
|
||||
}
|
||||
else if (strcmp(container_type->tp_name, "array.array") == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue