Bug #1432350: arrayobject should use PyObject_VAR_HEAD
diff --git a/Doc/api/newtypes.tex b/Doc/api/newtypes.tex
index a95f836..bfce26c 100644
--- a/Doc/api/newtypes.tex
+++ b/Doc/api/newtypes.tex
@@ -188,7 +188,7 @@
instance. This macro always expands to:
\begin{verbatim}
PyObject_HEAD
- int ob_size;
+ Py_ssize_t ob_size;
\end{verbatim}
Note that \csimplemacro{PyObject_HEAD} is part of the expansion, and
that its own expansion varies depending on the definition of
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 @@
};
typedef struct arrayobject {
- PyObject_HEAD
- Py_ssize_t ob_size;
+ PyObject_VAR_HEAD
char *ob_item;
Py_ssize_t allocated;
struct arraydescr *ob_descr;