summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-10-07 18:30:23 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-10-07 18:30:23 +0000
commitc5e4fbaf18c01b35faa523005d68e4b10319e77a (patch)
tree3d0c3598478f7d369bc86f296551f16c3d26862d
parent3f0cd73d77fafad5a41748b288863ab0b37628d8 (diff)
downloadnumpy-c5e4fbaf18c01b35faa523005d68e4b10319e77a.tar.gz
Fixed up one change in PyArray_New
-rw-r--r--scipy/base/src/ufuncobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scipy/base/src/ufuncobject.c b/scipy/base/src/ufuncobject.c
index 13868cd4e..4c9bf772c 100644
--- a/scipy/base/src/ufuncobject.c
+++ b/scipy/base/src/ufuncobject.c
@@ -1603,12 +1603,12 @@ construct_reduce(PyUFuncObject *self, PyArrayObject **arr, int axis,
}
loop->ret = (PyArrayObject *) \
PyArray_New(aar->ob_type, aar->nd-1, loop_i, otype,
- NULL, NULL, 0, 0, aar);
+ NULL, NULL, 0, 0, (PyObject *)aar);
break;
case UFUNC_ACCUMULATE:
loop->ret = (PyArrayObject *) \
PyArray_New(aar->ob_type, aar->nd, aar->dimensions,
- otype, NULL, NULL, 0, 0, aar);
+ otype, NULL, NULL, 0, 0, (PyObject *)aar);
break;
case UFUNC_REDUCEAT:
memcpy(loop_i, aar->dimensions, nd*sizeof(intp));
@@ -1616,7 +1616,7 @@ construct_reduce(PyUFuncObject *self, PyArrayObject **arr, int axis,
loop_i[axis] = ind_size;
loop->ret = (PyArrayObject *)\
PyArray_New(aar->ob_type, aar->nd, loop_i, otype,
- NULL, NULL, 0, 0, aar);
+ NULL, NULL, 0, 0, (PyObject *)aar);
if (loop->ret == NULL) goto fail;
if (ind_size == 0) {
loop->meth = ZERODIM_REDUCELOOP;