diff options
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/ufuncobject.c | 4 |
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; } } |