summaryrefslogtreecommitdiff
path: root/numpy/numarray/_capi.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/numarray/_capi.c')
-rw-r--r--numpy/numarray/_capi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/numarray/_capi.c b/numpy/numarray/_capi.c
index f99e88bf1..80194ca29 100644
--- a/numpy/numarray/_capi.c
+++ b/numpy/numarray/_capi.c
@@ -2775,7 +2775,8 @@ NA_NewAllFromBuffer(int ndim, maybelong *shape, NumarrayType type,
if (self == NULL) return self;
newdims.len = ndim;
newdims.ptr = shape;
- newself = PyArray_Newshape(self, &newdims, PyArray_CORDER);
+ newself = (PyArrayObject *)\
+ PyArray_Newshape(self, &newdims, PyArray_CORDER);
Py_DECREF(self);
self = newself;
}