gh-123205: Python/bytecodes.c: Fix compiler warning (#123206)

Fix MSVC warning "conversion from '__int64' to 'int'"
This commit is contained in:
Kirill Podoprigora 2024-08-23 22:35:25 +03:00 committed by GitHub
parent d7ae4dc5c1
commit 67f2c84bff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -6881,7 +6881,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 {