summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-06-11 12:01:47 (GMT)
committerGitHub <noreply@github.com>2018-06-11 12:01:47 (GMT)
commit5cbefa99198729a1d4e93d93f890c066039ee1d2 (patch)
tree76cff6b51ef8c34fa9523ae86278e6254572a08c /Objects
parent9d6171ded5c56679bc295bacffc718472bcb706b (diff)
downloadcpython-5cbefa99198729a1d4e93d93f890c066039ee1d2.zip
cpython-5cbefa99198729a1d4e93d93f890c066039ee1d2.tar.gz
cpython-5cbefa99198729a1d4e93d93f890c066039ee1d2.tar.bz2
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.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/exceptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index 7beb2a2..e1615b2 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -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[] = {