From: Georg Brandl Date: Fri, 17 Feb 2006 08:56:33 +0000 (+0000) Subject: Bug #1432350: arrayobject should use PyObject_VAR_HEAD X-Git-Tag: v2.5a0~634 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b6726732c63d69f45f80deabe8435c2a6347db4;p=thirdparty%2FPython%2Fcpython.git Bug #1432350: arrayobject should use PyObject_VAR_HEAD --- diff --git a/Doc/api/newtypes.tex b/Doc/api/newtypes.tex index a95f8361115e..bfce26c9b782 100644 --- a/Doc/api/newtypes.tex +++ b/Doc/api/newtypes.tex @@ -188,7 +188,7 @@ These macros are used in the definition of \ctype{PyObject} and 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 dffb2e71e0dc..4152baddf129 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;