diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-02-19 00:54:51 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-02-19 00:54:51 +0000 |
commit | f30e6c284e6430068c8301206c7e811f5127141b (patch) | |
tree | c9510da413bb73c4c713acf3d32ff53196e484ea /numpy/core/src/arrayobject.c | |
parent | 626bcc3dad4d8227addd43619bca1dc29ce4d0b1 (diff) | |
download | numpy-f30e6c284e6430068c8301206c7e811f5127141b.tar.gz |
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.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r-- | numpy/core/src/arrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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--) { |