diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 250e2d12a9de0b..f474720ef12cf4 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -2207,7 +2207,7 @@ dummy_func( *value_ptr = PyStackRef_AsPyObjectSteal(value); if (old_value == NULL) { PyDictValues *values = _PyObject_InlineValues(owner_o); - int index = value_ptr - values->values; + Py_ssize_t index = value_ptr - values->values; _PyDictValues_AddToInsertionOrder(values, index); } else { diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index 55b06a0e235dac..abcb198fa0297b 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -2594,7 +2594,7 @@ *value_ptr = PyStackRef_AsPyObjectSteal(value); if (old_value == NULL) { PyDictValues *values = _PyObject_InlineValues(owner_o); - int index = value_ptr - values->values; + Py_ssize_t index = value_ptr - values->values; _PyDictValues_AddToInsertionOrder(values, index); } else { diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index 13bbff29d09133..de9c36bc7a480a 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -6839,7 +6839,7 @@ *value_ptr = PyStackRef_AsPyObjectSteal(value); if (old_value == NULL) { PyDictValues *values = _PyObject_InlineValues(owner_o); - int index = value_ptr - values->values; + Py_ssize_t index = value_ptr - values->values; _PyDictValues_AddToInsertionOrder(values, index); } else {