Skip to content

Commit b21ae73

Browse files
committed
fixup
1 parent af9703a commit b21ae73

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Python/legacy_tracing.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,10 @@ trace_line(
327327

328328
static PyObject *
329329
sys_trace_line_func(
330-
_PyLegacyEventHandler *self, PyObject *const *args,
330+
PyObject *op, PyObject *const *args,
331331
size_t nargsf, PyObject *kwnames
332332
) {
333+
_PyLegacyEventHandler *self = _PyLegacyEventHandler_CAST(op);
333334
assert(kwnames == NULL);
334335
PyThreadState *tstate = _PyThreadState_GET();
335336
if (tstate->c_tracefunc == NULL) {
@@ -353,9 +354,10 @@ sys_trace_line_func(
353354
* Handle that case here */
354355
static PyObject *
355356
sys_trace_jump_func(
356-
_PyLegacyEventHandler *self, PyObject *const *args,
357+
PyObject *op, PyObject *const *args,
357358
size_t nargsf, PyObject *kwnames
358359
) {
360+
_PyLegacyEventHandler *self = _PyLegacyEventHandler_CAST(op);
359361
assert(kwnames == NULL);
360362
PyThreadState *tstate = _PyThreadState_GET();
361363
if (tstate->c_tracefunc == NULL) {

0 commit comments

Comments
 (0)