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/bytesobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/bytesobject.h') diff --git a/Include/bytesobject.h b/Include/bytesobject.h index 4c4dc40d70..ee448cd02b 100644 --- a/Include/bytesobject.h +++ b/Include/bytesobject.h @@ -29,7 +29,7 @@ PyAPI_DATA(PyTypeObject) PyBytesIter_Type; #define PyBytes_Check(op) \ PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_BYTES_SUBCLASS) -#define PyBytes_CheckExact(op) Py_IS_TYPE(op, &PyBytes_Type) +#define PyBytes_CheckExact(op) Py_IS_TYPE((op), &PyBytes_Type) PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t); PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *); -- cgit v1.2.1