From 93d2d8f20cb9904f33384a0c26bc082b27ecd1eb Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Fri, 25 Aug 2006 03:44:22 +0000 Subject: Fix warning... --- numpy/numarray/_capi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'numpy/numarray') 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; } -- cgit v1.2.1