diff options
author | ovillellas <oscar.villellas@continuum.io> | 2013-01-21 17:52:30 +0100 |
---|---|---|
committer | ovillellas <oscar.villellas@continuum.io> | 2013-01-21 17:52:30 +0100 |
commit | f2c81b485fa18e7ab918b470403c52751648dd3a (patch) | |
tree | afd91ef1d302070b010e90b03d1a419b108e35d9 | |
parent | cac3de50a2cafe1114b0671dd55ec2d1f6f2601a (diff) | |
download | numpy-f2c81b485fa18e7ab918b470403c52751648dd3a.tar.gz |
compile fix on linux/mac
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 51bd446ba..124185bfd 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -71,6 +71,12 @@ static int _does_loop_use_arrays(void *data); +static int +assign_reduce_identity_zero(PyArrayObject *result); + +static int +assign_reduce_identity_one(PyArrayObject *result); + /* * fpstatus is the ufunc_formatted hardware status * errmask is the handling mask specified by the user. @@ -2567,13 +2573,13 @@ reduce_type_resolver(PyUFuncObject *ufunc, PyArrayObject *arr, } static int -assign_reduce_identity_zero(PyArrayObject *result, void *data) +assign_reduce_identity_zero(PyArrayObject *result) { return PyArray_FillWithScalar(result, PyArrayScalar_False); } static int -assign_reduce_identity_one(PyArrayObject *result, void *data) +assign_reduce_identity_one(PyArrayObject *result) { return PyArray_FillWithScalar(result, PyArrayScalar_True); } |