aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-08-23 22:35:25 +0300
committerGitHub <noreply@github.com>2024-08-23 15:35:25 -0400
commit67f2c84bff06eb837fd5ca64466d79f038e22ef8 (patch)
treec9bb84d31c33da9db1cfafddbfb7007af221d05d /Python/executor_cases.c.h
parentd7ae4dc5c14bc014ca0c056dab54c86ba8f395cb (diff)
downloadcpython-67f2c84bff06eb837fd5ca64466d79f038e22ef8.tar.gz
cpython-67f2c84bff06eb837fd5ca64466d79f038e22ef8.zip
gh-123205: `Python/bytecodes.c`: Fix compiler warning (#123206)
Fix MSVC warning "conversion from '__int64' to 'int'"
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index 8726adeeead..3d0f3b36a40 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -2596,7 +2596,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 {