Blame SOURCES/glibc-rh656530.patch

b9ba6d
2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
b9ba6d
b9ba6d
	* sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
b9ba6d
	  signed comparison.
b9ba6d
b9ba6d
Index: glibc-2.12-2-gc4ccff1/sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c
b9ba6d
===================================================================
b9ba6d
--- glibc-2.12-2-gc4ccff1.orig/sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c
b9ba6d
+++ glibc-2.12-2-gc4ccff1/sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c
b9ba6d
@@ -73,9 +73,9 @@ long double __ieee754_sqrtl(long double 
b9ba6d
 	m = ((a.i[2] >> 20) & 0x7ff) - 54;
b9ba6d
       }
b9ba6d
       m += n;
b9ba6d
-      if (m > 0)
b9ba6d
+      if ((int) m > 0)
b9ba6d
 	a.i[2] = (a.i[2] & 0x800fffff) | (m << 20);
b9ba6d
-      else if (m <= -54) {
b9ba6d
+      else if ((int) m <= -54) {
b9ba6d
 	a.i[2] &= 0x80000000;
b9ba6d
 	a.i[3] = 0;
b9ba6d
       } else {