[Numpy-svn] r4879 - trunk/numpy/core/src
numpy-svn at scipy.org
numpy-svn at scipy.org
Sun Mar 16 23:49:04 EDT 2008
Author: charris
Date: 2008-03-16 22:48:57 -0500 (Sun, 16 Mar 2008)
New Revision: 4879
Modified:
trunk/numpy/core/src/ufuncobject.c
Log:
ticket 641
Fix unary ufuncs for clongdouble.
Still needs test functions.
Needs verification that it fixes the segfault.
Modified: trunk/numpy/core/src/ufuncobject.c
===================================================================
--- trunk/numpy/core/src/ufuncobject.c 2008-03-16 17:08:32 UTC (rev 4878)
+++ trunk/numpy/core/src/ufuncobject.c 2008-03-17 03:48:57 UTC (rev 4879)
@@ -338,8 +338,8 @@
x.real = ((longdouble *)ip1)[0];
x.imag = ((longdouble *)ip1)[1];
((ClongdoubleUnaryFunc *)func)(&x, &res);
- ((double *)op)[0] = res.real;
- ((double *)op)[1] = res.imag;
+ ((longdouble *)op)[0] = res.real;
+ ((longdouble *)op)[1] = res.imag;
}
}
More information about the Numpy-svn
mailing list