diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-16 11:49:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 11:49:43 (GMT) |
commit | 7546914e3f8157d8bad2998677e0ea3ed4cb7939 (patch) | |
tree | 13ca68df49a1a1f0281ecd352991235752a28a09 /Include/floatobject.h | |
parent | 484b40bf189ae881992366f2b7b6b63812d18591 (diff) | |
download | cpython-7546914e3f8157d8bad2998677e0ea3ed4cb7939.zip cpython-7546914e3f8157d8bad2998677e0ea3ed4cb7939.tar.gz cpython-7546914e3f8157d8bad2998677e0ea3ed4cb7939.tar.bz2 |
gh-87347: Add parenthesis around PyXXX_Check() arguments (#92815)
Diffstat (limited to 'Include/floatobject.h')
-rw-r--r-- | Include/floatobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/floatobject.h b/Include/floatobject.h index 9d2fff3..999441a 100644 --- a/Include/floatobject.h +++ b/Include/floatobject.h @@ -14,7 +14,7 @@ extern "C" { PyAPI_DATA(PyTypeObject) PyFloat_Type; #define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type) -#define PyFloat_CheckExact(op) Py_IS_TYPE(op, &PyFloat_Type) +#define PyFloat_CheckExact(op) Py_IS_TYPE((op), &PyFloat_Type) #define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN) |