diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-20 14:04:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 14:04:52 (GMT) |
commit | 7ad6f74fcf9db1ccfeaf0986064870d8d3887300 (patch) | |
tree | 2b140e0e4fdb3b58379887bab6ff68ade5c67c60 /Include/pyerrors.h | |
parent | 61f24e7885bed096b5d7f75aff13c1001994b35a (diff) | |
download | cpython-7ad6f74fcf9db1ccfeaf0986064870d8d3887300.zip cpython-7ad6f74fcf9db1ccfeaf0986064870d8d3887300.tar.gz cpython-7ad6f74fcf9db1ccfeaf0986064870d8d3887300.tar.bz2 |
gh-87347: Add parenthesis around macro arguments (#93915)
Add unit test on Py_MEMBER_SIZE() and some other macros.
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r-- | Include/pyerrors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index 4944fee..d5ac6af 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -65,7 +65,7 @@ PyAPI_FUNC(const char *) PyExceptionClass_Name(PyObject *); #define PyExceptionInstance_Class(x) _PyObject_CAST(Py_TYPE(x)) #define _PyBaseExceptionGroup_Check(x) \ - PyObject_TypeCheck(x, (PyTypeObject *)PyExc_BaseExceptionGroup) + PyObject_TypeCheck((x), (PyTypeObject *)PyExc_BaseExceptionGroup) /* Predefined exceptions */ |