gh-111178: fix UBSan failures for `Modules/_testcapimodule.c` by picnixz · Pull Request #131614 · python/cpython

Expand Up @@ -2940,8 +2940,6 @@ typedef struct { PyObject *item; } PyGenericAliasObject;
#define PyGenericAliasObject_CAST(op) ((PyGenericAliasObject *)(op))
static void generic_alias_dealloc(PyObject *op) { Expand Down Expand Up @@ -3080,8 +3078,6 @@ typedef struct { PyObject *value; } ContainerNoGCobject;
#define ContainerNoGCobject_CAST(op) ((ContainerNoGCobject *)(op))
static PyObject * ContainerNoGC_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { Expand Down