[Numpy-svn] r5428 - branches/1.1.x/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Tue Jul 15 22:21:11 CDT 2008


Author: charris
Date: 2008-07-15 22:21:08 -0500 (Tue, 15 Jul 2008)
New Revision: 5428

Modified:
   branches/1.1.x/numpy/core/src/ufuncobject.c
Log:
Backport r5245.


Modified: branches/1.1.x/numpy/core/src/ufuncobject.c
===================================================================
--- branches/1.1.x/numpy/core/src/ufuncobject.c	2008-07-16 03:15:22 UTC (rev 5427)
+++ branches/1.1.x/numpy/core/src/ufuncobject.c	2008-07-16 03:21:08 UTC (rev 5428)
@@ -2745,7 +2745,7 @@
         while(loop->index < loop->size) {
             if (loop->obj)
                 Py_INCREF(*((PyObject **)loop->it->dataptr));
-            memcpy(loop->bufptr[0], loop->it->dataptr,
+            memmove(loop->bufptr[0], loop->it->dataptr,
                    loop->outsize);
             PyArray_ITER_NEXT(loop->it);
             loop->bufptr[0] += loop->outsize;
@@ -2758,7 +2758,7 @@
             /* Copy first element to output */
             if (loop->obj)
                 Py_INCREF(*((PyObject **)loop->it->dataptr));
-            memcpy(loop->bufptr[0], loop->it->dataptr,
+            memmove(loop->bufptr[0], loop->it->dataptr,
                    loop->outsize);
             /* Adjust input pointer */
             loop->bufptr[1] = loop->it->dataptr+loop->steps[1];



More information about the Numpy-svn mailing list