summaryrefslogtreecommitdiffstats
path: root/Include/boolobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/boolobject.h')
-rw-r--r--Include/boolobject.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Include/boolobject.h b/Include/boolobject.h
index 7cc2f1f..74e854f 100644
--- a/Include/boolobject.h
+++ b/Include/boolobject.h
@@ -7,6 +7,8 @@ extern "C" {
#endif
+typedef PyIntObject PyBoolObject;
+
PyAPI_DATA(PyTypeObject) PyBool_Type;
#define PyBool_Check(x) (Py_TYPE(x) == &PyBool_Type)
@@ -15,10 +17,10 @@ PyAPI_DATA(PyTypeObject) PyBool_Type;
Don't forget to apply Py_INCREF() when returning either!!! */
/* Don't use these directly */
-PyAPI_DATA(struct _longobject) _Py_FalseStruct, _Py_TrueStruct;
+PyAPI_DATA(PyIntObject) _Py_ZeroStruct, _Py_TrueStruct;
/* Use these macros */
-#define Py_False ((PyObject *) &_Py_FalseStruct)
+#define Py_False ((PyObject *) &_Py_ZeroStruct)
#define Py_True ((PyObject *) &_Py_TrueStruct)
/* Macros for returning Py_True or Py_False, respectively */