summaryrefslogtreecommitdiffstats
path: root/Include/sliceobject.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/sliceobject.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/sliceobject.h')
-rw-r--r--Include/sliceobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/sliceobject.h b/Include/sliceobject.h
index 2c88950..c13863f 100644
--- a/Include/sliceobject.h
+++ b/Include/sliceobject.h
@@ -28,7 +28,7 @@ typedef struct {
PyAPI_DATA(PyTypeObject) PySlice_Type;
PyAPI_DATA(PyTypeObject) PyEllipsis_Type;
-#define PySlice_Check(op) Py_IS_TYPE(op, &PySlice_Type)
+#define PySlice_Check(op) Py_IS_TYPE((op), &PySlice_Type)
PyAPI_FUNC(PyObject *) PySlice_New(PyObject* start, PyObject* stop,
PyObject* step);