diff options
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 33505b40a73..226c64f717d 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -2996,8 +2996,9 @@ is_bytecode_unused(_PyCodeArray *tlbc, Py_ssize_t idx, } static int -get_code_with_unused_tlbc(PyObject *obj, struct get_code_args *args) +get_code_with_unused_tlbc(PyObject *obj, void *data) { + struct get_code_args *args = (struct get_code_args *) data; if (!PyCode_Check(obj)) { return 1; } @@ -3046,7 +3047,7 @@ _Py_ClearUnusedTLBC(PyInterpreterState *interp) } // Collect code objects that have bytecode not in use by any thread _PyGC_VisitObjectsWorldStopped( - interp, (gcvisitobjects_t)get_code_with_unused_tlbc, &args); + interp, get_code_with_unused_tlbc, &args); if (args.err < 0) { goto err; } |