aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2025-03-14 10:52:15 +0100
committerGitHub <noreply@github.com>2025-03-14 09:52:15 +0000
commita5776639c8fde8b3b7c90821ab78ddb64130f4c0 (patch)
tree2335aced817f18ae94f8defe72533722b6054abf /Objects/codeobject.c
parente4ac196aaaa9fd2f1bd0050797b58959671c549a (diff)
downloadcpython-a5776639c8fde8b3b7c90821ab78ddb64130f4c0.tar.gz
cpython-a5776639c8fde8b3b7c90821ab78ddb64130f4c0.zip
gh-111178: Fix function signatures to fix undefined behavior (#131191)
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 60563ea7575..90f0bfb7b92 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -1361,7 +1361,8 @@ lineiter_dealloc(PyObject *self)
}
static PyObject *
-_source_offset_converter(int *value) {
+_source_offset_converter(void *arg) {
+ int *value = (int*)arg;
if (*value == -1) {
Py_RETURN_NONE;
}