From 45b5a6a8f416bf04a710aa74353397ffb3bda1ff Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sun, 1 Apr 2007 23:22:15 +0000 Subject: Do not use floating-point numbers to copy data as it will not work when high-order bits are set that do not fit in the floating-point representation. --- numpy/core/src/arrayobject.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numpy/core/src/arrayobject.c') diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index da9c14f98..199189b8f 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -324,7 +324,7 @@ _strided_byte_copy(char *dst, intp outstrides, char *src, intp instrides, switch(elsize) { case 8: - _FAST_MOVE(Float64); + _FAST_MOVE(Int64); case 4: _FAST_MOVE(Int32); case 1: @@ -333,8 +333,8 @@ _strided_byte_copy(char *dst, intp outstrides, char *src, intp instrides, _FAST_MOVE(Int16); case 16: for (i=0; i