diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-21 22:30:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 22:30:17 (GMT) |
commit | 7835cbf949c413a746324721a352cc72670a8a36 (patch) | |
tree | 73b9f3e21924552bb745c2062ae59981c266c7d8 /Python/bltinmodule.c | |
parent | 8ee07dda139f3fa1d7c58a29532a98efc790568d (diff) | |
download | cpython-7835cbf949c413a746324721a352cc72670a8a36.zip cpython-7835cbf949c413a746324721a352cc72670a8a36.tar.gz cpython-7835cbf949c413a746324721a352cc72670a8a36.tar.bz2 |
bpo-46417: Use _PyType_CAST() in Python directory (GH-30769)
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index ef1b2bb..ecd8be1 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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; } |