]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Followup to r77918: fix build under Windows.
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 4 Feb 2010 17:02:07 +0000 (17:02 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 4 Feb 2010 17:02:07 +0000 (17:02 +0000)
Modules/_testcapimodule.c

index cefcbff98d0cf037100723415ef25f616e18753b..f9f6fca8733194fc44f56532f5c7a7107af6e876 100644 (file)
@@ -303,7 +303,7 @@ static PyBufferProcs memoryviewtester_as_buffer = {
 };
 
 static PyTypeObject _MemoryViewTester_Type = {
-       PyVarObject_HEAD_INIT(&PyType_Type, 0)
+       PyVarObject_HEAD_INIT(NULL, 0)
        "memoryviewtester",     /* Name of this type */
        sizeof(PyObject),       /* Basic object size */
        0,                      /* Item size for varobject */
@@ -2245,6 +2245,7 @@ PyInit__testcapi(void)
                return NULL;
 
        Py_TYPE(&_HashInheritanceTester_Type)=&PyType_Type;
+       Py_TYPE(&_MemoryViewTester_Type)=&PyType_Type;
 
        Py_TYPE(&test_structmembersType)=&PyType_Type;
        Py_INCREF(&test_structmembersType);