bpo-46417: Use _PyType_CAST() in Objects directory (GH-30764)

This commit is contained in:
Victor Stinner 2022-01-21 23:33:43 +01:00 committed by GitHub
parent 7835cbf949
commit ac1f152421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 20 deletions

View file

@ -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;
}