mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Followup to r77918: fix build under Windows.
This commit is contained in:
parent
5973e4d0a3
commit
8f0b31ae4c
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue