From 52c1e3cc083db02d97424ab70f55809246b6a452 Mon Sep 17 00:00:00 2001 From: Hirokazu Yamamoto Date: Wed, 31 Dec 2008 05:24:37 +0000 Subject: Fixed compile error on windows. --- Modules/_testcapimodule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index bd2f211..00ae111 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -177,7 +177,7 @@ test_dict_iteration(PyObject* self) * PyType_Ready if it hasn't already been called */ static PyTypeObject _HashInheritanceTester_Type = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, /* Number of items for varobject */ "hashinheritancetester", /* Name of this type */ sizeof(PyObject), /* Basic object size */ @@ -1092,6 +1092,7 @@ init_testcapi(void) if (m == NULL) return; + Py_TYPE(&_HashInheritanceTester_Type)=&PyType_Type; Py_TYPE(&test_structmembersType)=&PyType_Type; Py_INCREF(&test_structmembersType); PyModule_AddObject(m, "test_structmembersType", (PyObject *)&test_structmembersType); -- cgit v0.12