diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-01-17 16:30:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 16:30:10 (GMT) |
commit | a4bc2218d270c4c7a898c8b3967c8c271afe9abe (patch) | |
tree | 2d95ccd94b7eedfe2507543d4a335339bc4ae475 /Python | |
parent | 83d544b9292870eb44f6fca37df0aa351c4ef83a (diff) | |
download | cpython-a4bc2218d270c4c7a898c8b3967c8c271afe9abe.zip cpython-a4bc2218d270c4c7a898c8b3967c8c271afe9abe.tar.gz cpython-a4bc2218d270c4c7a898c8b3967c8c271afe9abe.tar.bz2 |
bpo-46405: fix msvc compiler warnings (GH-30627)
Diffstat (limited to 'Python')
-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 2da9e0f..7c2252d 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()); |