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/funcobject.h | |
| parent | 484b40bf189ae881992366f2b7b6b63812d18591 (diff) | |
| download | cpython-git-7546914e3f8157d8bad2998677e0ea3ed4cb7939.tar.gz | |
gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815)
Diffstat (limited to 'Include/cpython/funcobject.h')
| -rw-r--r-- | Include/cpython/funcobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/funcobject.h b/Include/cpython/funcobject.h index 4294fc0cdf..05f76656c4 100644 --- a/Include/cpython/funcobject.h +++ b/Include/cpython/funcobject.h @@ -60,7 +60,7 @@ typedef struct { PyAPI_DATA(PyTypeObject) PyFunction_Type; -#define PyFunction_Check(op) Py_IS_TYPE(op, &PyFunction_Type) +#define PyFunction_Check(op) Py_IS_TYPE((op), &PyFunction_Type) PyAPI_FUNC(PyObject *) PyFunction_New(PyObject *, PyObject *); PyAPI_FUNC(PyObject *) PyFunction_NewWithQualName(PyObject *, PyObject *, PyObject *); |
