diff options
Diffstat (limited to 'Objects/boolobject.c')
-rw-r--r-- | Objects/boolobject.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Objects/boolobject.c b/Objects/boolobject.c index b0170f6..00d8515 100644 --- a/Objects/boolobject.c +++ b/Objects/boolobject.c @@ -143,8 +143,7 @@ static PyNumberMethods bool_as_number = { /* The type object for bool. Note that this cannot be subclassed! */ PyTypeObject PyBool_Type = { - PyObject_HEAD_INIT(&PyType_Type) - 0, + PyVarObject_HEAD_INIT(&PyType_Type, 0) "bool", sizeof(struct _longobject), 0, @@ -188,11 +187,11 @@ PyTypeObject PyBool_Type = { /* Named Zero for link-level compatibility */ struct _longobject _Py_FalseStruct = { - PyObject_HEAD_INIT(&PyBool_Type) - 0, { 0 } + PyVarObject_HEAD_INIT(&PyBool_Type, 0) + { 0 } }; struct _longobject _Py_TrueStruct = { - PyObject_HEAD_INIT(&PyBool_Type) - 1, { 1 } + PyVarObject_HEAD_INIT(&PyBool_Type, 1) + { 1 } }; |