From 67f2c84bff06eb837fd5ca64466d79f038e22ef8 Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Fri, 23 Aug 2024 22:35:25 +0300 Subject: gh-123205: `Python/bytecodes.c`: Fix compiler warning (#123206) Fix MSVC warning "conversion from '__int64' to 'int'" --- Python/bytecodes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/bytecodes.c') diff --git a/Python/bytecodes.c b/Python/bytecodes.c index fefa3af37a1..ad30fb3db03 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -2215,7 +2215,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 { -- cgit v1.2.3