summaryrefslogtreecommitdiffstats
path: root/Modules/mpzmodule.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-02-06 22:33:45 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-02-06 22:33:45 (GMT)
commit22aa6447b47e1f0518cd3cdf8e3961fc8583f70d (patch)
treec91ea8cfdbf907ee931a5905d93be1d93307baa3 /Modules/mpzmodule.c
parent3cbdbfbf9c07577b624d660c30bfa5a8e1e69419 (diff)
downloadcpython-22aa6447b47e1f0518cd3cdf8e3961fc8583f70d.zip
cpython-22aa6447b47e1f0518cd3cdf8e3961fc8583f70d.tar.gz
cpython-22aa6447b47e1f0518cd3cdf8e3961fc8583f70d.tar.bz2
Patch #103523, to make mpz module compile with Cygwin
Diffstat (limited to 'Modules/mpzmodule.c')
-rw-r--r--Modules/mpzmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c
index 2cce2cc..890f7bb 100644
--- a/Modules/mpzmodule.c
+++ b/Modules/mpzmodule.c
@@ -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 */