From 7546914e3f8157d8bad2998677e0ea3ed4cb7939 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 16 Jun 2022 13:49:43 +0200 Subject: gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815) --- Include/methodobject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Include/methodobject.h') diff --git a/Include/methodobject.h b/Include/methodobject.h index c971d78a64..72af5ad933 100644 --- a/Include/methodobject.h +++ b/Include/methodobject.h @@ -13,8 +13,8 @@ extern "C" { PyAPI_DATA(PyTypeObject) PyCFunction_Type; -#define PyCFunction_CheckExact(op) Py_IS_TYPE(op, &PyCFunction_Type) -#define PyCFunction_Check(op) PyObject_TypeCheck(op, &PyCFunction_Type) +#define PyCFunction_CheckExact(op) Py_IS_TYPE((op), &PyCFunction_Type) +#define PyCFunction_Check(op) PyObject_TypeCheck((op), &PyCFunction_Type) typedef PyObject *(*PyCFunction)(PyObject *, PyObject *); typedef PyObject *(*_PyCFunctionFast) (PyObject *, PyObject *const *, Py_ssize_t); -- cgit v1.2.1