diff options
Diffstat (limited to 'Include/boolobject.h')
-rw-r--r-- | Include/boolobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/boolobject.h b/Include/boolobject.h index f5d7eec..33f8112 100644 --- a/Include/boolobject.h +++ b/Include/boolobject.h @@ -9,7 +9,7 @@ extern "C" { PyAPI_DATA(PyTypeObject) PyBool_Type; -#define PyBool_Check(x) ((x)->ob_type == &PyBool_Type) +#define PyBool_Check(x) (Py_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!!! */ |