]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46405: fix msvc compiler warnings (GH-30627)
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Mon, 17 Jan 2022 16:30:10 +0000 (22:00 +0530)
committerGitHub <noreply@github.com>
Mon, 17 Jan 2022 16:30:10 +0000 (16:30 +0000)
Python/specialize.c

index 2da9e0f29b7a4366215666f4495a3ed6a3cb82fb..7c2252dd7a0e5cb0da5049ee0e6424908e20a2b8 100644 (file)
@@ -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());