aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2024-06-24 17:11:47 +0100
committerGitHub <noreply@github.com>2024-06-24 17:11:47 +0100
commite7315543377322e4c6e0d8d2c4a4bb4626e43f4c (patch)
tree956e3eb3c667a53aa60954e36916d165f2333bab /Objects/codeobject.c
parent2e157851e36d83b0cb079b161d633b16ab899d16 (diff)
downloadcpython-e7315543377322e4c6e0d8d2c4a4bb4626e43f4c.tar.gz
cpython-e7315543377322e4c6e0d8d2c4a4bb4626e43f4c.zip
Fixes loop variables to be the same types as their limit (GH-120958)
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 95da63506c6..4be17708d3a 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -573,7 +573,7 @@ get_line_delta(const uint8_t *ptr)
static PyObject *
remove_column_info(PyObject *locations)
{
- int offset = 0;
+ Py_ssize_t offset = 0;
const uint8_t *data = (const uint8_t *)PyBytes_AS_STRING(locations);
PyObject *res = PyBytes_FromStringAndSize(NULL, 32);
if (res == NULL) {