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

numpy-svn@scip... numpy-svn@scip...
Sun Apr 8 16:28:44 CDT 2007


Author: charris
Date: 2007-04-08 16:28:42 -0500 (Sun, 08 Apr 2007)
New Revision: 3682

Modified:
   trunk/numpy/core/include/numpy/ndarrayobject.h
Log:
Parenthesize some defined expressions just to be clean.

Modified: trunk/numpy/core/include/numpy/ndarrayobject.h
===================================================================
--- trunk/numpy/core/include/numpy/ndarrayobject.h	2007-04-08 02:29:39 UTC (rev 3681)
+++ trunk/numpy/core/include/numpy/ndarrayobject.h	2007-04-08 21:28:42 UTC (rev 3682)
@@ -190,14 +190,14 @@
         NPY_HEAPSORT=1,
         NPY_MERGESORT=2,
 } NPY_SORTKIND;
-#define NPY_NSORTS NPY_MERGESORT + 1
+#define NPY_NSORTS (NPY_MERGESORT + 1)
 
 
 typedef enum {
         NPY_SEARCHLEFT=0,
         NPY_SEARCHRIGHT=1,
 } NPY_SEARCHSIDE;
-#define NPY_NSEARCHSIDES NPY_SEARCHRIGHT + 1
+#define NPY_NSEARCHSIDES (NPY_SEARCHRIGHT + 1)
 
 
 typedef enum {
@@ -209,7 +209,7 @@
         NPY_COMPLEX_SCALAR,
         NPY_OBJECT_SCALAR,
 } NPY_SCALARKIND;
-#define NPY_NSCALARKINDS (NPY_OBJECT_SCALAR+1)
+#define NPY_NSCALARKINDS (NPY_OBJECT_SCALAR + 1)
 
 typedef enum {
         NPY_ANYORDER=-1,



More information about the Numpy-svn mailing list