Skip to content

Commit

Permalink
bpo-46405: fix msvc compiler warnings (GH-30627)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 committed Jan 17, 2022
1 parent 83d544b commit a4bc221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/specialize.c
Expand Up @@ -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());
Expand Down

0 comments on commit a4bc221

Please sign in to comment.