summaryrefslogtreecommitdiffstats
path: root/Include/longobject.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-16 11:49:43 (GMT)
committerGitHub <noreply@github.com>2022-06-16 11:49:43 (GMT)
commit7546914e3f8157d8bad2998677e0ea3ed4cb7939 (patch)
tree13ca68df49a1a1f0281ecd352991235752a28a09 /Include/longobject.h
parent484b40bf189ae881992366f2b7b6b63812d18591 (diff)
downloadcpython-7546914e3f8157d8bad2998677e0ea3ed4cb7939.zip
cpython-7546914e3f8157d8bad2998677e0ea3ed4cb7939.tar.gz
cpython-7546914e3f8157d8bad2998677e0ea3ed4cb7939.tar.bz2
gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815)
Diffstat (limited to 'Include/longobject.h')
-rw-r--r--Include/longobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/longobject.h b/Include/longobject.h
index 81ba123..e559e23 100644
--- a/Include/longobject.h
+++ b/Include/longobject.h
@@ -11,7 +11,7 @@ PyAPI_DATA(PyTypeObject) PyLong_Type;
#define PyLong_Check(op) \
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS)
-#define PyLong_CheckExact(op) Py_IS_TYPE(op, &PyLong_Type)
+#define PyLong_CheckExact(op) Py_IS_TYPE((op), &PyLong_Type)
PyAPI_FUNC(PyObject *) PyLong_FromLong(long);
PyAPI_FUNC(PyObject *) PyLong_FromUnsignedLong(unsigned long);