From e7315543377322e4c6e0d8d2c4a4bb4626e43f4c Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Mon, 24 Jun 2024 17:11:47 +0100 Subject: Fixes loop variables to be the same types as their limit (GH-120958) --- Objects/codeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/codeobject.c') 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) { -- cgit v1.2.3