mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-46417: Use _PyType_CAST() in Objects directory (GH-30764)
This commit is contained in:
parent
7835cbf949
commit
ac1f152421
9 changed files with 13 additions and 20 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue