Blame SOURCES/glibc-rh1505492-zerodiv-log.patch

c6d234
Suppress integer division by zero warnings by using floating-point
c6d234
literals.  Introduced by glibc-rh1409611.patch.
c6d234
c6d234
diff --git a/sysdeps/ieee754/dbl-64/e_log.c b/sysdeps/ieee754/dbl-64/e_log.c
c6d234
index 930aa0eed8ec7818..e3e0eda594735f62 100644
c6d234
--- a/sysdeps/ieee754/dbl-64/e_log.c
c6d234
+++ b/sysdeps/ieee754/dbl-64/e_log.c
c6d234
@@ -78,9 +78,9 @@ __ieee754_log(double x) {
c6d234
   n=0;
c6d234
   if (__builtin_expect(ux < 0x00100000, 0)) {
c6d234
     if (__builtin_expect(((ux & 0x7fffffff) | dx) == 0, 0))
c6d234
-      return MHALF/0; /* return -INF */
c6d234
+      return MHALF/0.0; /* return -INF */
c6d234
     if (__builtin_expect(ux < 0, 0))
c6d234
-      return (x-x)/0;                         /* return NaN  */
c6d234
+      return (x-x)/0.0;                         /* return NaN  */
c6d234
     n -= 54;    x *= two54.d;                              /* scale x     */
c6d234
     num.d = x;
c6d234
   }