mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-46417: Use _PyType_CAST() in Python directory (GH-30769)
This commit is contained in:
parent
8ee07dda13
commit
7835cbf949
2 changed files with 3 additions and 4 deletions
|
@ -536,7 +536,7 @@ static PyObject *
|
|||
filter_vectorcall(PyObject *type, PyObject * const*args,
|
||||
size_t nargsf, PyObject *kwnames)
|
||||
{
|
||||
PyTypeObject *tp = (PyTypeObject *)type;
|
||||
PyTypeObject *tp = _PyType_CAST(type);
|
||||
if (tp == &PyFilter_Type && !_PyArg_NoKwnames("filter", kwnames)) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1251,7 +1251,7 @@ static PyObject *
|
|||
map_vectorcall(PyObject *type, PyObject * const*args,
|
||||
size_t nargsf, PyObject *kwnames)
|
||||
{
|
||||
PyTypeObject *tp = (PyTypeObject *)type;
|
||||
PyTypeObject *tp = _PyType_CAST(type);
|
||||
if (tp == &PyMap_Type && !_PyArg_NoKwnames("map", kwnames)) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue