Skip to content

Commit 67f2c84

Browse files
authored
gh-123205: Python/bytecodes.c: Fix compiler warning (#123206)
Fix MSVC warning "conversion from '__int64' to 'int'"
1 parent d7ae4dc commit 67f2c84

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2215,7 +2215,7 @@ dummy_func(
22152215
*value_ptr = PyStackRef_AsPyObjectSteal(value);
22162216
if (old_value == NULL) {
22172217
PyDictValues *values = _PyObject_InlineValues(owner_o);
2218-
int index = value_ptr - values->values;
2218+
Py_ssize_t index = value_ptr - values->values;
22192219
_PyDictValues_AddToInsertionOrder(values, index);
22202220
}
22212221
else {

Python/executor_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)