Bug #1432350: arrayobject should use PyObject_VAR_HEAD
authorGeorg Brandl <georg@python.org>
Fri, 17 Feb 2006 08:56:33 +0000 (08:56 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 17 Feb 2006 08:56:33 +0000 (08:56 +0000)
Doc/api/newtypes.tex
Modules/arraymodule.c

index a95f8361115e4ded7be94bd37d9dc7b83fa73fe5..bfce26c9b782de59a6064520cdbb932bb2b5a722 100644 (file)
@@ -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
index dffb2e71e0dc016c0c7dae9a0db234bd988a2189..4152baddf129b8c995a187dba74f93c94a975f86 100644 (file)
@@ -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;