diff options
author | Christian Tismer <tismer@stackless.com> | 2018-06-10 22:48:28 (GMT) |
---|---|---|
committer | Ned Deily <nad@python.org> | 2018-06-10 22:48:28 (GMT) |
commit | 8398713cea0eb17b013f25f86bef47c7e5e63139 (patch) | |
tree | bbfcab1633b490ea30724338d5d4e3a43ece3a9b /Include/pyerrors.h | |
parent | 877b23202b7e7d4f57b58504fd0eb886e8c0b377 (diff) | |
download | cpython-8398713cea0eb17b013f25f86bef47c7e5e63139.zip cpython-8398713cea0eb17b013f25f86bef47c7e5e63139.tar.gz cpython-8398713cea0eb17b013f25f86bef47c7e5e63139.tar.bz2 |
bpo-33738: Address review comments in GH #7477 (GH-7585)
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r-- | Include/pyerrors.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index a9929f5..5fd981c 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)) |