summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-12-31 06:05:46 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2008-12-31 06:05:46 (GMT)
commit8ebab5df636b83b19fce58d15937a41b6fdb4ff9 (patch)
tree13fb8e4a059f6d1aac16df5d6386f7bf75b69db9 /Modules
parent6152558fc370ef4abfb367444ea4b8834fe4c4af (diff)
downloadcpython-8ebab5df636b83b19fce58d15937a41b6fdb4ff9.zip
cpython-8ebab5df636b83b19fce58d15937a41b6fdb4ff9.tar.gz
cpython-8ebab5df636b83b19fce58d15937a41b6fdb4ff9.tar.bz2
Merged revisions 68097,68099 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68097 | hirokazu.yamamoto | 2008-12-31 14:24:37 +0900 | 1 line Fixed compile error on windows. ........ r68099 | hirokazu.yamamoto | 2008-12-31 14:47:19 +0900 | 1 line Just inserted blank line. ........
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testcapimodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index a1b367a..1599702 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -179,7 +179,7 @@ test_dict_iteration(PyObject* self)
* PyType_Ready if it hasn't already been called
*/
static PyTypeObject _HashInheritanceTester_Type = {
- PyVarObject_HEAD_INIT(&PyType_Type, 0)
+ PyVarObject_HEAD_INIT(NULL, 0)
"hashinheritancetester", /* Name of this type */
sizeof(PyObject), /* Basic object size */
0, /* Item size for varobject */
@@ -1339,6 +1339,8 @@ PyInit__testcapi(void)
if (m == NULL)
return NULL;
+ Py_TYPE(&_HashInheritanceTester_Type)=&PyType_Type;
+
Py_TYPE(&test_structmembersType)=&PyType_Type;
Py_INCREF(&test_structmembersType);
PyModule_AddObject(m, "test_structmembersType", (PyObject *)&test_structmembersType);