summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-05-03 06:26:48 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-05-03 06:26:48 -0700
commitf817e761bad00895d9fe96fb1514bbf71d9fde57 (patch)
tree3504061eb068c54d9920f9e6eaa17a3c020cc699 /numpy
parent086721ce8d760feb633ff457a75982fd887fe440 (diff)
parent88a9b6d26a83613b1d65539aabce62722ec4e617 (diff)
downloadnumpy-f817e761bad00895d9fe96fb1514bbf71d9fde57.tar.gz
Merge pull request #3301 from charris/fix-test_rational
BUG: gh-3300, Fix missing return value in test_rational.c.src.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/umath/test_rational.c.src14
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/core/src/umath/test_rational.c.src b/numpy/core/src/umath/test_rational.c.src
index 15beff0e3..a04e7c754 100644
--- a/numpy/core/src/umath/test_rational.c.src
+++ b/numpy/core/src/umath/test_rational.c.src
@@ -1042,7 +1042,7 @@ rational_gufunc_matrix_multiply(char **args, npy_intp *dimensions,
npy_intp s1 = steps[1];
npy_intp s2 = steps[2];
- /*
+ /*
* loop through outer dimensions, performing matrix multiply on
* core dimensions for each loop
*/
@@ -1162,7 +1162,7 @@ PyMODINIT_FUNC inittest_rational(void) {
REGISTER_CAST(int##bits##_t, rational, \
PyArray_DescrFromType(NPY_INT##bits), npy_rational, 1) \
REGISTER_CAST(rational, int##bits##_t, &npyrational_descr, \
- NPY_INT##bits, 0)
+ NPY_INT##bits, 0)
REGISTER_INT_CASTS(8)
REGISTER_INT_CASTS(16)
REGISTER_INT_CASTS(32)
@@ -1193,11 +1193,11 @@ PyMODINIT_FUNC inittest_rational(void) {
} \
}
#define REGISTER_UFUNC_BINARY_RATIONAL(name) \
- REGISTER_UFUNC(name,{npy_rational,npy_rational,npy_rational})
+ REGISTER_UFUNC(name, {npy_rational, npy_rational, npy_rational})
#define REGISTER_UFUNC_BINARY_COMPARE(name) \
- REGISTER_UFUNC(name,{npy_rational,npy_rational,NPY_BOOL})
+ REGISTER_UFUNC(name, {npy_rational, npy_rational, NPY_BOOL})
#define REGISTER_UFUNC_UNARY(name) \
- REGISTER_UFUNC(name,{npy_rational,npy_rational})
+ REGISTER_UFUNC(name, {npy_rational, npy_rational})
/* Binary */
REGISTER_UFUNC_BINARY_RATIONAL(add)
REGISTER_UFUNC_BINARY_RATIONAL(subtract)
@@ -1261,12 +1261,12 @@ PyMODINIT_FUNC inittest_rational(void) {
PyUFunc_None,(char*)"test_add",
(char*)"add two matrices of int64 and return rational matrix",0);
if (!ufunc) {
- return;
+ return NULL;
}
int types3[3] = {NPY_INT64,NPY_INT64,npy_rational};
if (PyUFunc_RegisterLoopForType((PyUFuncObject*)ufunc, npy_rational,
rational_ufunc_test_add, types3, 0) < 0) {
- return;
+ return NULL;
}
PyModule_AddObject(m,"test_add",(PyObject*)ufunc);