diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-08-25 03:44:22 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-08-25 03:44:22 +0000 |
commit | 93d2d8f20cb9904f33384a0c26bc082b27ecd1eb (patch) | |
tree | c453e5b148c79370f4797ed9c92487f37671012b /numpy/numarray/_capi.c | |
parent | f769cefd2533d5d63adb2b229364209450c80bc4 (diff) | |
download | numpy-93d2d8f20cb9904f33384a0c26bc082b27ecd1eb.tar.gz |
Fix warning...
Diffstat (limited to 'numpy/numarray/_capi.c')
-rw-r--r-- | numpy/numarray/_capi.c | 3 |
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; } |