diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-21 22:33:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 22:33:43 (GMT) |
commit | ac1f152421fab3ac854fe4565c575b306e2bb4b5 (patch) | |
tree | 90014ae2e0e269f96472fdec37a9d88a4fed010b /Objects/floatobject.c | |
parent | 7835cbf949c413a746324721a352cc72670a8a36 (diff) | |
download | cpython-ac1f152421fab3ac854fe4565c575b306e2bb4b5.zip cpython-ac1f152421fab3ac854fe4565c575b306e2bb4b5.tar.gz cpython-ac1f152421fab3ac854fe4565c575b306e2bb4b5.tar.bz2 |
bpo-46417: Use _PyType_CAST() in Objects directory (GH-30764)
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 68be7ac..79fbdab 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -1686,7 +1686,7 @@ float_vectorcall(PyObject *type, PyObject * const*args, } PyObject *x = nargs >= 1 ? args[0] : NULL; - return float_new_impl((PyTypeObject *)type, x); + return float_new_impl(_PyType_CAST(type), x); } |