]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix fmod for subnormals (bug 14048).
authorJoseph Myers <joseph@codesourcery.com>
Fri, 1 Jun 2012 19:05:46 +0000 (19:05 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 25 Jun 2012 23:12:39 +0000 (23:12 +0000)
(cherry picked from commit c5bfe3d5ba29d36563f1e4bd4f8d7336093ee6fc)

ChangeLog
NEWS
sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c

index ae32903f520a9b8641fadc2ff79fcff36d9c0fa0..833d6397705ccd6a3b8ad4eb29cd441b77c5eaea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        * sysdeps/mach/configure: Likewise.
        * sysdeps/mach/hurd/configure: Likewise.
 
+2012-06-01  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #14048]
+       * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
+       Use int64_t for variable i.
+
 2012-05-17  Andreas Jaeger  <aj@suse.de>
            Carlos O'Donell  <carlos_odonell@mentor.com>
 
diff --git a/NEWS b/NEWS
index c8fbcb0d01dd48bf66fd26cbcad91215037d383a..a804824d8f5bfc1e6db738afbdc4448fee244b31 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,7 +10,7 @@ Version 2.15.1
 * The following bugs are resolved with this release:
 
   411, 2547, 2548, 11365, 11494, 13583, 13731, 13732, 13733, 13747, 13748,
-  13749, 13753, 13771, 13774, 13786, 14059, 14167
+  13749, 13753, 13771, 13774, 13786, 14048, 14059, 14167
 
 Version 2.15
 
index 0e20571a74cfed3a805fa47801bc9d964a48db67..5158196766a51cbabba4d2694076c67817eb92d6 100644 (file)
@@ -24,8 +24,8 @@ static const double one = 1.0, Zero[] = {0.0, -0.0,};
 double
 __ieee754_fmod (double x, double y)
 {
-       int32_t n,i,ix,iy;
-       int64_t hx,hy,hz,sx;
+       int32_t n,ix,iy;
+       int64_t hx,hy,hz,sx,i;
 
        EXTRACT_WORDS64(hx,x);
        EXTRACT_WORDS64(hy,y);