diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/abstract.h | 2 | ||||
-rw-r--r-- | Include/pyerrors.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Include/abstract.h b/Include/abstract.h index e7bc2d24bc..c1297dbede 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -598,7 +598,7 @@ PyAPI_FUNC(PyObject *) PyObject_GetIter(PyObject *); ((obj)->ob_type->tp_iternext != NULL && \ (obj)->ob_type->tp_iternext != &_PyObject_NextNotImplemented) #else -PyAPI_FUNC(int) PyIter_Check(PyObject*); +PyAPI_FUNC(int) PyIter_Check(PyObject *); #endif /* Takes an iterator object and calls its tp_iternext slot, 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)) |