summaryrefslogtreecommitdiffstats
path: root/Objects/complexobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-01-21 22:33:43 (GMT)
committerGitHub <noreply@github.com>2022-01-21 22:33:43 (GMT)
commitac1f152421fab3ac854fe4565c575b306e2bb4b5 (patch)
tree90014ae2e0e269f96472fdec37a9d88a4fed010b /Objects/complexobject.c
parent7835cbf949c413a746324721a352cc72670a8a36 (diff)
downloadcpython-ac1f152421fab3ac854fe4565c575b306e2bb4b5.zip
cpython-ac1f152421fab3ac854fe4565c575b306e2bb4b5.tar.gz
cpython-ac1f152421fab3ac854fe4565c575b306e2bb4b5.tar.bz2
bpo-46417: Use _PyType_CAST() in Objects directory (GH-30764)
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r--Objects/complexobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index f658dbf..e0766de 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -846,7 +846,7 @@ complex_from_string_inner(const char *s, Py_ssize_t len, void *type)
if (s-start != len)
goto parse_error;
- return complex_subtype_from_doubles((PyTypeObject *)type, x, y);
+ return complex_subtype_from_doubles(_PyType_CAST(type), x, y);
parse_error:
PyErr_SetString(PyExc_ValueError,