]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(__finitel): Shift return value by 31 positions to get 0/1 result.
authorUlrich Drepper <drepper@redhat.com>
Sun, 6 Apr 1997 00:48:10 +0000 (00:48 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 6 Apr 1997 00:48:10 +0000 (00:48 +0000)
sysdeps/libm-ieee754/s_finitel.c

index 442372664529a4285d354fcd3ac77f44b3de7f57..6e444e90d02b8c364a930fa558d29e33fdecf8bf 100644 (file)
@@ -35,6 +35,6 @@ static char rcsid[] = "$NetBSD: $";
 {
        int32_t exp;
        GET_LDOUBLE_EXP(exp,x);
-       return (int)((u_int32_t)((exp&0x7fff)-0x7fff)>>15);
+       return (int)((u_int32_t)((exp&0x7fff)-0x7fff)>>31);
 }
 weak_alias (__finitel, finitel)