[Python-checkins] r68097 - python/trunk/Modules/_testcapimodule.c
hirokazu.yamamoto
python-checkins at python.org
Wed Dec 31 06:24:37 CET 2008
Author: hirokazu.yamamoto
Date: Wed Dec 31 06:24:37 2008
New Revision: 68097
Log:
Fixed compile error on windows.
Modified:
python/trunk/Modules/_testcapimodule.c
Modified: python/trunk/Modules/_testcapimodule.c
==============================================================================
--- python/trunk/Modules/_testcapimodule.c (original)
+++ python/trunk/Modules/_testcapimodule.c Wed Dec 31 06:24:37 2008
@@ -177,7 +177,7 @@
* 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 @@
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);
More information about the Python-checkins
mailing list