]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[NO_LONG_DOUBLE]: Correct cabsl.
authorUlrich Drepper <drepper@redhat.com>
Tue, 9 Dec 1997 23:49:24 +0000 (23:49 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 9 Dec 1997 23:49:24 +0000 (23:49 +0000)
sysdeps/libm-ieee754/w_cabs.c

index 5313cba46663e6f291f2130746d8800419b84581..eec09d59bbf38b04bd6c7e5d985f743375e034dc 100644 (file)
@@ -20,10 +20,15 @@ __cabs (struct __cabs_complex z)
 weak_alias (__cabs, cabs)
 
 #ifdef NO_LONG_DOUBLE
+struct __cabs_complexl
+{
+  double x, y;
+};
+
 double
 __cabsl (struct __cabs_complexl z)
 {
-       return __hypotl(z.x, z.y);
+       return __hypot(z.x, z.y);
 }
 weak_alias (__cabsl, cabsl)
 #endif