summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2008-04-23 20:49:48 +0000
committerRobert Kern <robert.kern@gmail.com>2008-04-23 20:49:48 +0000
commit5d954e2d60155787b9ac1841e5cc02380496bd99 (patch)
tree3b22b282238733d0cc411e6f42d47d0b1ef294b8 /numpy/core
parent7b2239fbdfc7c5fdefdfd6eb59dc0ed500aa2291 (diff)
downloadnumpy-5d954e2d60155787b9ac1841e5cc02380496bd99.tar.gz
In C, you shouldn't have trailing commas on the last item in an enum.
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/include/numpy/ndarrayobject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/include/numpy/ndarrayobject.h b/numpy/core/include/numpy/ndarrayobject.h
index f274c4b3f..72e15a52d 100644
--- a/numpy/core/include/numpy/ndarrayobject.h
+++ b/numpy/core/include/numpy/ndarrayobject.h
@@ -197,14 +197,14 @@ enum NPY_TYPECHAR { NPY_BOOLLTR = '?',
typedef enum {
NPY_QUICKSORT=0,
NPY_HEAPSORT=1,
- NPY_MERGESORT=2,
+ NPY_MERGESORT=2
} NPY_SORTKIND;
#define NPY_NSORTS (NPY_MERGESORT + 1)
typedef enum {
NPY_SEARCHLEFT=0,
- NPY_SEARCHRIGHT=1,
+ NPY_SEARCHRIGHT=1
} NPY_SEARCHSIDE;
#define NPY_NSEARCHSIDES (NPY_SEARCHRIGHT + 1)
@@ -216,7 +216,7 @@ typedef enum {
NPY_INTNEG_SCALAR,
NPY_FLOAT_SCALAR,
NPY_COMPLEX_SCALAR,
- NPY_OBJECT_SCALAR,
+ NPY_OBJECT_SCALAR
} NPY_SCALARKIND;
#define NPY_NSCALARKINDS (NPY_OBJECT_SCALAR + 1)