summaryrefslogtreecommitdiffstats
path: root/Objects/complexobject.c
diff options
context:
space:
mode:
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,