[Numpy-svn] r6431 - trunk/numpy/core/include/numpy

numpy-svn@scip... numpy-svn@scip...
Fri Feb 20 22:41:25 CST 2009


Author: charris
Date: 2009-02-20 22:41:17 -0600 (Fri, 20 Feb 2009)
New Revision: 6431

Modified:
   trunk/numpy/core/include/numpy/ndarrayobject.h
Log:
Remove terminating ";" from macro to fix ticket #918.

Modified: trunk/numpy/core/include/numpy/ndarrayobject.h
===================================================================
--- trunk/numpy/core/include/numpy/ndarrayobject.h	2009-02-21 04:39:39 UTC (rev 6430)
+++ trunk/numpy/core/include/numpy/ndarrayobject.h	2009-02-21 04:41:17 UTC (rev 6431)
@@ -1692,12 +1692,12 @@
 
 #define PyArray_GETITEM(obj,itemptr)                                          \
         ((PyArrayObject *)(obj))->descr->f->getitem((char *)(itemptr),        \
-                                                 (PyArrayObject *)(obj));
+                                                 (PyArrayObject *)(obj))
 
 #define PyArray_SETITEM(obj,itemptr,v)                                        \
         ((PyArrayObject *)(obj))->descr->f->setitem((PyObject *)(v),          \
                                                     (char *)(itemptr),        \
-                                                    (PyArrayObject *)(obj));
+                                                    (PyArrayObject *)(obj))
 
 
 #define PyTypeNum_ISBOOL(type) ((type) == NPY_BOOL)



More information about the Numpy-svn mailing list