diff options
author | Victor Stinner <vstinner@python.org> | 2025-03-14 10:52:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-14 09:52:15 +0000 |
commit | a5776639c8fde8b3b7c90821ab78ddb64130f4c0 (patch) | |
tree | 2335aced817f18ae94f8defe72533722b6054abf /Objects/codeobject.c | |
parent | e4ac196aaaa9fd2f1bd0050797b58959671c549a (diff) | |
download | cpython-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.c | 3 |
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; } |