Author: das
Date: Thu Feb 10 07:38:38 2011
New Revision: 218511
URL: http://svn.freebsd.org/changeset/base/218511

Log:
  Fix a bug where the wrong argument was passed to SET_FLOAT_WORD().
  This bug results in a type mismatch that happens to be harmless
  because of the way SET_FLOAT_WORD() works.
  
  Submitted by: bde

Modified:
  head/lib/msun/src/s_nexttowardf.c

Modified: head/lib/msun/src/s_nexttowardf.c
==============================================================================
--- head/lib/msun/src/s_nexttowardf.c   Thu Feb 10 07:38:13 2011        
(r218510)
+++ head/lib/msun/src/s_nexttowardf.c   Thu Feb 10 07:38:38 2011        
(r218511)
@@ -50,8 +50,8 @@ nexttowardf(float x, long double y)
        if(ix<0x00800000) {             /* underflow */
            t = x*x;
            if(t!=x) {          /* raise underflow flag */
-               SET_FLOAT_WORD(y,hx);
-               return y;
+               SET_FLOAT_WORD(x,hx);
+               return x;
            }
        }
        SET_FLOAT_WORD(x,hx);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to