From 828c8eab10f0a979fec26dbaefc1e532dc1f8981 Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Wed, 21 Aug 2024 20:27:44 +0300 Subject: [PATCH] Try to fix warning --- Python/bytecodes.c | 2 +- Python/executor_cases.c.h | 2 +- Python/generated_cases.c.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 {