Patch #103523, to make mpz module compile with Cygwin

This commit is contained in:
Andrew M. Kuchling 2001-02-06 22:33:45 +00:00
parent 3cbdbfbf9c
commit 22aa6447b4
1 changed files with 2 additions and 1 deletions

View File

@ -1584,7 +1584,7 @@ static PyNumberMethods mpz_as_number = {
};
static PyTypeObject MPZtype = {
PyObject_HEAD_INIT(&PyType_Type)
PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"mpz", /*tp_name*/
sizeof(mpzobject), /*tp_size*/
@ -1716,6 +1716,7 @@ initmpz(void)
#endif /* def MPZ_DEBUG */
mp_set_memory_functions( mp_allocate, mp_reallocate, mp_free );
MPZtype.ob_type = &PyType_Type;
module = Py_InitModule("mpz", mpz_functions);
/* create some frequently used constants */