mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
gh-133258: Fix crash in test_index (GH-133262)
This commit is contained in:
parent
d10bd81b45
commit
a4be3bc34f
5 changed files with 30 additions and 30 deletions
|
@ -916,11 +916,10 @@ dummy_func(
|
|||
assert(PyList_CheckExact(list));
|
||||
|
||||
PyObject *res_o = _PyList_SliceSubscript(list, sub);
|
||||
DEOPT_IF(res_o == NULL);
|
||||
STAT_INC(BINARY_OP, hit);
|
||||
res = PyStackRef_FromPyObjectSteal(res_o);
|
||||
STAT_INC(BINARY_OP, hit);
|
||||
DECREF_INPUTS();
|
||||
ERROR_IF(res_o == NULL);
|
||||
res = PyStackRef_FromPyObjectSteal(res_o);
|
||||
}
|
||||
|
||||
macro(BINARY_OP_SUBSCR_STR_INT) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue