diff options
author | Mark Shannon <mark@hotpy.org> | 2023-01-30 10:03:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 10:03:04 (GMT) |
commit | c1b1f51cd1632f0b77dacd43092fb44ed5e053a9 (patch) | |
tree | da815b0f6e2daddbb013ce2383837c61b3675201 /Python/specialize.c | |
parent | f5a3d91b6c56ddff4644b5a5ac34d8c6d23d7c79 (diff) | |
download | cpython-c1b1f51cd1632f0b77dacd43092fb44ed5e053a9.zip cpython-c1b1f51cd1632f0b77dacd43092fb44ed5e053a9.tar.gz cpython-c1b1f51cd1632f0b77dacd43092fb44ed5e053a9.tar.bz2 |
GH-101291: Refactor the `PyLongObject` struct into object header and PyLongValue struct. (GH-101292)
Diffstat (limited to 'Python/specialize.c')
-rw-r--r-- | Python/specialize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index 84784b2..096687f 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -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; |