summaryrefslogtreecommitdiffstats
path: root/Include/moduleobject.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/moduleobject.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/moduleobject.h')
-rw-r--r--Include/moduleobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h
index 75abd2c..fbb2c5a 100644
--- a/Include/moduleobject.h
+++ b/Include/moduleobject.h
@@ -9,8 +9,8 @@ extern "C" {
PyAPI_DATA(PyTypeObject) PyModule_Type;
-#define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
-#define PyModule_CheckExact(op) Py_IS_TYPE(op, &PyModule_Type)
+#define PyModule_Check(op) PyObject_TypeCheck((op), &PyModule_Type)
+#define PyModule_CheckExact(op) Py_IS_TYPE((op), &PyModule_Type)
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
PyAPI_FUNC(PyObject *) PyModule_NewObject(