]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/glibc/glibc-rh656530.patch
Merge remote-tracking branch 'origin/next' into thirteen
[people/teissler/ipfire-2.x.git] / src / patches / glibc / glibc-rh656530.patch
1 2010-11-10 Luis Machado <luisgpm@br.ibm.com>
2
3 * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
4 signed comparison.
5
6 Index: glibc-2.12-2-gc4ccff1/sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c
7 ===================================================================
8 --- glibc-2.12-2-gc4ccff1.orig/sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c
9 +++ glibc-2.12-2-gc4ccff1/sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c
10 @@ -73,9 +73,9 @@ long double __ieee754_sqrtl(long double
11 m = ((a.i[2] >> 20) & 0x7ff) - 54;
12 }
13 m += n;
14 - if (m > 0)
15 + if ((int) m > 0)
16 a.i[2] = (a.i[2] & 0x800fffff) | (m << 20);
17 - else if (m <= -54) {
18 + else if ((int) m <= -54) {
19 a.i[2] &= 0x80000000;
20 a.i[3] = 0;
21 } else {