diff options
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r-- | Objects/listobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c index 29f5d70..0ce58b2 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -2858,8 +2858,7 @@ list_vectorcall(PyObject *type, PyObject * const*args, return NULL; } - assert(PyType_Check(type)); - PyObject *list = PyType_GenericAlloc((PyTypeObject *)type, 0); + PyObject *list = PyType_GenericAlloc(_PyType_CAST(type), 0); if (list == NULL) { return NULL; } |