Skip to content

Commit 4048a40

Browse files
committed
Revert "pythongh-111178: fix UBSan failures for RemoteUnwinderObject (python#135539)"
This reverts commit 54e29ea.
1 parent 34b644c commit 4048a40

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Modules/_remote_debugging_module.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ typedef struct {
214214
#endif
215215
} RemoteUnwinderObject;
216216

217-
#define RemoteUnwinder_CAST(op) ((RemoteUnwinderObject *)(op))
218-
219217
typedef struct
220218
{
221219
int lineno;
@@ -2915,9 +2913,8 @@ static PyMethodDef RemoteUnwinder_methods[] = {
29152913
};
29162914

29172915
static void
2918-
RemoteUnwinder_dealloc(PyObject *op)
2916+
RemoteUnwinder_dealloc(RemoteUnwinderObject *self)
29192917
{
2920-
RemoteUnwinderObject *self = RemoteUnwinder_CAST(op);
29212918
PyTypeObject *tp = Py_TYPE(self);
29222919
if (self->code_object_cache) {
29232920
_Py_hashtable_destroy(self->code_object_cache);

0 commit comments

Comments
 (0)