mirror of
https://github.com/python/cpython.git
synced 2025-08-29 21:25:01 +00:00
bpo-46405: fix msvc compiler warnings (GH-30627)
This commit is contained in:
parent
83d544b929
commit
a4bc2218d2
1 changed files with 1 additions and 1 deletions
|
@ -1240,7 +1240,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] < PyList_GET_SIZE(container))
|
||||
&& ((PyLongObject *)sub)->ob_digit[0] < (size_t)PyList_GET_SIZE(container))
|
||||
{
|
||||
*instr = _Py_MAKECODEUNIT(STORE_SUBSCR_LIST_INT,
|
||||
initial_counter_value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue