summaryrefslogtreecommitdiffstats
path: root/Include/boolobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/boolobject.h')
-rw-r--r--Include/boolobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/boolobject.h b/Include/boolobject.h
index 7cc2f1f..bb8044a 100644
--- a/Include/boolobject.h
+++ b/Include/boolobject.h
@@ -9,7 +9,7 @@ extern "C" {
PyAPI_DATA(PyTypeObject) PyBool_Type;
-#define PyBool_Check(x) (Py_TYPE(x) == &PyBool_Type)
+#define PyBool_Check(x) Py_IS_TYPE(x, &PyBool_Type)
/* Py_False and Py_True are the only two bools in existence.
Don't forget to apply Py_INCREF() when returning either!!! */