diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-12-31 05:24:37 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-12-31 05:24:37 (GMT) |
commit | 52c1e3cc083db02d97424ab70f55809246b6a452 (patch) | |
tree | fcbe55aa6dadb8da3ff7e49da3fdad74292b9576 /Modules | |
parent | 941db4d91f3c6eba19ddaa7310e3a79b1f9b70f7 (diff) | |
download | cpython-52c1e3cc083db02d97424ab70f55809246b6a452.zip cpython-52c1e3cc083db02d97424ab70f55809246b6a452.tar.gz cpython-52c1e3cc083db02d97424ab70f55809246b6a452.tar.bz2 |
Fixed compile error on windows.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testcapimodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |