From f30e6c284e6430068c8301206c7e811f5127141b Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sun, 19 Feb 2006 00:54:51 +0000 Subject: 1) Fix scimath functions to take and return vectors. 2) Fix old bug in PyArray_CastTo when multiple copies made. 3) Fix reference counting bugs. --- numpy/core/src/arrayobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/src/arrayobject.c') diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index a90fb7cca..3d11d42ac 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -5671,7 +5671,7 @@ PyArray_CastTo(PyArrayObject *out, PyArrayObject *mp) if (simple) { char *inptr; char *optr = out->data; - intp obytes = out->descr->elsize * outsize; + intp obytes = out->descr->elsize * mpsize; intp ncopies = outsize / mpsize; while(ncopies--) { -- cgit v1.2.1