mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
GH-101291: Refactor the PyLongObject
struct into object header and PyLongValue struct. (GH-101292)
This commit is contained in:
parent
f5a3d91b6c
commit
c1b1f51cd1
13 changed files with 226 additions and 217 deletions
|
@ -1411,7 +1411,7 @@ _Py_Specialize_StoreSubscr(PyObject *container, PyObject *sub, _Py_CODEUNIT *ins
|
|||
if (container_type == &PyList_Type) {
|
||||
if (PyLong_CheckExact(sub)) {
|
||||
if ((Py_SIZE(sub) == 0 || Py_SIZE(sub) == 1)
|
||||
&& ((PyLongObject *)sub)->ob_digit[0] < (size_t)PyList_GET_SIZE(container))
|
||||
&& ((PyLongObject *)sub)->long_value.ob_digit[0] < (size_t)PyList_GET_SIZE(container))
|
||||
{
|
||||
_py_set_opcode(instr, STORE_SUBSCR_LIST_INT);
|
||||
goto success;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue