diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-02-04 17:02:07 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-02-04 17:02:07 (GMT) |
commit | 8f0b31ae4c32a32ee92e0464465172e4e2541b48 (patch) | |
tree | 56f5c5076c559c1a4580db0d60f2b4955d5f3de9 | |
parent | 5973e4d0a3a4afd70694de76ea871c32f863c9e8 (diff) | |
download | cpython-8f0b31ae4c32a32ee92e0464465172e4e2541b48.zip cpython-8f0b31ae4c32a32ee92e0464465172e4e2541b48.tar.gz cpython-8f0b31ae4c32a32ee92e0464465172e4e2541b48.tar.bz2 |
Followup to r77918: fix build under Windows.
-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 cefcbff..f9f6fca 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -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); |