summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-02-17 08:56:33 (GMT)
committerGeorg Brandl <georg@python.org>2006-02-17 08:56:33 (GMT)
commit1b6726732c63d69f45f80deabe8435c2a6347db4 (patch)
treed024a475ab88c747afa65d60f3e252040e49361e /Modules/arraymodule.c
parent86d662602d18dccbae4ee7bf23564263dee7141e (diff)
downloadcpython-1b6726732c63d69f45f80deabe8435c2a6347db4.zip
cpython-1b6726732c63d69f45f80deabe8435c2a6347db4.tar.gz
cpython-1b6726732c63d69f45f80deabe8435c2a6347db4.tar.bz2
Bug #1432350: arrayobject should use PyObject_VAR_HEAD
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index dffb2e7..4152bad 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -29,8 +29,7 @@ struct arraydescr {
};
typedef struct arrayobject {
- PyObject_HEAD
- Py_ssize_t ob_size;
+ PyObject_VAR_HEAD
char *ob_item;
Py_ssize_t allocated;
struct arraydescr *ob_descr;