From 8398713cea0eb17b013f25f86bef47c7e5e63139 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Mon, 11 Jun 2018 00:48:28 +0200 Subject: bpo-33738: Address review comments in GH #7477 (GH-7585) --- Include/pyerrors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Include/pyerrors.h') diff --git a/Include/pyerrors.h b/Include/pyerrors.h index a9929f5f19..5fd981c2ba 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -142,9 +142,9 @@ PyAPI_FUNC(void) _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *); #ifndef Py_LIMITED_API #define PyExceptionClass_Name(x) \ - ((char *)(((PyTypeObject*)(x))->tp_name)) + ((char *)(((PyTypeObject *)(x))->tp_name)) #else - PyAPI_FUNC(char *) PyExceptionClass_Name(PyObject*); + PyAPI_FUNC(const char *) PyExceptionClass_Name(PyObject *); #endif #define PyExceptionInstance_Class(x) ((PyObject*)((x)->ob_type)) -- cgit v1.2.1