Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8ebab5d

Browse files
author
Hirokazu Yamamoto
committed
Merged revisions 68097,68099 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 6152558 commit 8ebab5d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Modules/_testcapimodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ test_dict_iteration(PyObject* self)
179179
* PyType_Ready if it hasn't already been called
180180
*/
181181
static PyTypeObject _HashInheritanceTester_Type = {
182-
PyVarObject_HEAD_INIT(&PyType_Type, 0)
182+
PyVarObject_HEAD_INIT(NULL, 0)
183183
"hashinheritancetester", /* Name of this type */
184184
sizeof(PyObject), /* Basic object size */
185185
0, /* Item size for varobject */
@@ -1339,6 +1339,8 @@ PyInit__testcapi(void)
13391339
if (m == NULL)
13401340
return NULL;
13411341

1342+
Py_TYPE(&_HashInheritanceTester_Type)=&PyType_Type;
1343+
13421344
Py_TYPE(&test_structmembersType)=&PyType_Type;
13431345
Py_INCREF(&test_structmembersType);
13441346
PyModule_AddObject(m, "test_structmembersType", (PyObject *)&test_structmembersType);

0 commit comments

Comments
 (0)