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/cpython/code.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/cpython/code.h') diff --git a/Include/cpython/code.h b/Include/cpython/code.h index 1812617d3c..8e65474bb4 100644 --- a/Include/cpython/code.h +++ b/Include/cpython/code.h @@ -137,7 +137,7 @@ struct PyCodeObject _PyCode_DEF(1); PyAPI_DATA(PyTypeObject) PyCode_Type; -#define PyCode_Check(op) Py_IS_TYPE(op, &PyCode_Type) +#define PyCode_Check(op) Py_IS_TYPE((op), &PyCode_Type) #define PyCode_GetNumFree(op) ((op)->co_nfreevars) #define _PyCode_CODE(CO) ((_Py_CODEUNIT *)(CO)->co_code_adaptive) #define _PyCode_NBYTES(CO) (Py_SIZE(CO) * (Py_ssize_t)sizeof(_Py_CODEUNIT)) -- cgit v1.2.1