]> granicus.if.org Git - python/commitdiff
Patch #103523, to make mpz module compile with Cygwin
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 6 Feb 2001 22:33:45 +0000 (22:33 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 6 Feb 2001 22:33:45 +0000 (22:33 +0000)
Modules/mpzmodule.c

index 2cce2ccf946e036656117ea965a1db56876ee689..890f7bb8a2e5d387a7b6555d64445d0f5a977ad3 100644 (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 */