Skip to content

Commit a4bc221

Browse files
bpo-46405: fix msvc compiler warnings (GH-30627)
1 parent 83d544b commit a4bc221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/specialize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@ _Py_Specialize_StoreSubscr(PyObject *container, PyObject *sub, _Py_CODEUNIT *ins
12401240
if (container_type == &PyList_Type) {
12411241
if (PyLong_CheckExact(sub)) {
12421242
if ((Py_SIZE(sub) == 0 || Py_SIZE(sub) == 1)
1243-
&& ((PyLongObject *)sub)->ob_digit[0] < PyList_GET_SIZE(container))
1243+
&& ((PyLongObject *)sub)->ob_digit[0] < (size_t)PyList_GET_SIZE(container))
12441244
{
12451245
*instr = _Py_MAKECODEUNIT(STORE_SUBSCR_LIST_INT,
12461246
initial_counter_value());

0 commit comments

Comments
 (0)