diff Modules/arraymodule.c @ 27804:8d1b272c9e71 legacy-trunk

Patch #676837: Cygwin array module patch The attached patch enables the array module to build cleanly under Cygwin again.
author Jason Tishler <jason@tishler.net>
date Mon, 10 Feb 2003 20:45:47 +0000
parents 047b6e16ab2e
children db92c77b05e2
line wrap: on
line diff
--- a/Modules/arraymodule.c	Mon Feb 10 19:38:33 2003 +0000
+++ b/Modules/arraymodule.c	Mon Feb 10 20:45:47 2003 +0000
@@ -1949,7 +1949,7 @@
 }
 
 static PyTypeObject PyArrayIter_Type = {
-	PyObject_HEAD_INIT(&PyType_Type)
+	PyObject_HEAD_INIT(NULL)
 	0,                                      /* ob_size */
 	"arrayiterator",                        /* tp_name */
 	sizeof(arrayiterobject),                /* tp_basicsize */
@@ -1996,6 +1996,7 @@
 	PyObject *m;
 
 	Arraytype.ob_type = &PyType_Type;
+	PyArrayIter_Type.ob_type = &PyType_Type;
 	m = Py_InitModule3("array", a_methods, module_doc);
 
         Py_INCREF((PyObject *)&Arraytype);