diff Include/object.h @ 42675:cd4591b754e0

Fix memory leak in arraymodule.c and respond to a few comments by nnorwitz.
author Travis E. Oliphant <oliphant@enthought.com>
date Mon, 20 Aug 2007 07:16:33 +0000
parents 2c51be9904de
children 4e6b4ba60c3b
line wrap: on
line diff
--- a/Include/object.h	Sun Aug 19 22:48:23 2007 +0000
+++ b/Include/object.h	Mon Aug 20 07:16:33 2007 +0000
@@ -145,9 +145,10 @@
 typedef struct bufferinfo {
 	void *buf;         
         Py_ssize_t len;
-        Py_ssize_t itemsize;  
+        Py_ssize_t itemsize;  /* This is Py_ssize_t so it can be 
+                                 pointed to by strides in simple case.*/
         int readonly;
-        int ndim; /* XXX(nnorwitz): should be Py_ssize_t??? */
+        int ndim;
         char *format;
         Py_ssize_t *shape;
         Py_ssize_t *strides;