summaryrefslogtreecommitdiff
path: root/libm/w_cabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/w_cabs.c')
-rw-r--r--libm/w_cabs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libm/w_cabs.c b/libm/w_cabs.c
index b2592484c..546b6affa 100644
--- a/libm/w_cabs.c
+++ b/libm/w_cabs.c
@@ -17,7 +17,7 @@ libm_hidden_def(cabs)
libm_hidden_proto(cabsf)
float cabsf(float _Complex z)
{
- return (float) hypot(__real__ z, __imag__ z);
+ return (float) hypot((double)__real__ z, (double)__imag__ z);
}
libm_hidden_def(cabsf)