diff options
| author | Victor Stinner <vstinner@python.org> | 2022-06-16 13:49:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-16 13:49:43 +0200 |
| commit | 7546914e3f8157d8bad2998677e0ea3ed4cb7939 (patch) | |
| tree | 13ca68df49a1a1f0281ecd352991235752a28a09 /Include/cpython/methodobject.h | |
| parent | 484b40bf189ae881992366f2b7b6b63812d18591 (diff) | |
| download | cpython-git-7546914e3f8157d8bad2998677e0ea3ed4cb7939.tar.gz | |
gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815)
Diffstat (limited to 'Include/cpython/methodobject.h')
| -rw-r--r-- | Include/cpython/methodobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/cpython/methodobject.h b/Include/cpython/methodobject.h index eac9e08293..d541e15494 100644 --- a/Include/cpython/methodobject.h +++ b/Include/cpython/methodobject.h @@ -31,8 +31,8 @@ typedef struct { PyAPI_DATA(PyTypeObject) PyCMethod_Type; -#define PyCMethod_CheckExact(op) Py_IS_TYPE(op, &PyCMethod_Type) -#define PyCMethod_Check(op) PyObject_TypeCheck(op, &PyCMethod_Type) +#define PyCMethod_CheckExact(op) Py_IS_TYPE((op), &PyCMethod_Type) +#define PyCMethod_Check(op) PyObject_TypeCheck((op), &PyCMethod_Type) /* Static inline functions for direct access to these values. |
