summaryrefslogtreecommitdiff
path: root/numpy/core/src/ufuncobject.c
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2008-03-17 03:48:57 +0000
committerCharles Harris <charlesr.harris@gmail.com>2008-03-17 03:48:57 +0000
commitd76f7cf48d6a2e0780d28fa0f8d94a321f52cf82 (patch)
treeec6495157f51300428e98c0e8cbe1136118817b9 /numpy/core/src/ufuncobject.c
parent07ed95fe7749820558abbf08b51f74bb3f014984 (diff)
downloadnumpy-d76f7cf48d6a2e0780d28fa0f8d94a321f52cf82.tar.gz
ticket 641
Fix unary ufuncs for clongdouble. Still needs test functions. Needs verification that it fixes the segfault.
Diffstat (limited to 'numpy/core/src/ufuncobject.c')
-rw-r--r--numpy/core/src/ufuncobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/ufuncobject.c b/numpy/core/src/ufuncobject.c
index f1dad6626..4f5b29825 100644
--- a/numpy/core/src/ufuncobject.c
+++ b/numpy/core/src/ufuncobject.c
@@ -338,8 +338,8 @@ PyUFunc_G_G(char **args, intp *dimensions, intp *steps, void *func)
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;
}
}