From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Mon, 17 Jan 2022 16:30:10 +0000 (+0530) Subject: bpo-46405: fix msvc compiler warnings (GH-30627) X-Git-Tag: v3.11.0a5~232 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4bc2218d270c4c7a898c8b3967c8c271afe9abe;p=thirdparty%2FPython%2Fcpython.git bpo-46405: fix msvc compiler warnings (GH-30627) --- diff --git a/Python/specialize.c b/Python/specialize.c index 2da9e0f29b7a..7c2252dd7a0e 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -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());