mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Clean up after bpo-33738. (GH-7627)
* Add declarations even if they are overridden by macros. * Make the declaration and the definition of PyExceptionClass_Name consistent.
This commit is contained in:
parent
9d6171ded5
commit
5cbefa9919
4 changed files with 6 additions and 9 deletions
|
@ -347,7 +347,7 @@ PyException_SetContext(PyObject *self, PyObject *context)
|
|||
char *
|
||||
PyExceptionClass_Name(PyObject *ob)
|
||||
{
|
||||
return ((PyTypeObject*)ob)->tp_name;
|
||||
return (char *)((PyTypeObject*)ob)->tp_name;
|
||||
}
|
||||
|
||||
static struct PyMemberDef BaseException_members[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue