svn commit: r218510 - head/lib/msun/src

David Schultz das at FreeBSD.org
Thu Feb 10 07:38:13 UTC 2011


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

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

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

Modified: head/lib/msun/src/s_nexttoward.c
==============================================================================
--- head/lib/msun/src/s_nexttoward.c	Thu Feb 10 07:37:50 2011	(r218509)
+++ head/lib/msun/src/s_nexttoward.c	Thu Feb 10 07:38:13 2011	(r218510)
@@ -63,8 +63,8 @@ nexttoward(double x, long double y)
 	if(ix<0x00100000) {		/* underflow */
 	    t = x*x;
 	    if(t!=x) {		/* raise underflow flag */
-	        INSERT_WORDS(y,hx,lx);
-		return y;
+	        INSERT_WORDS(x,hx,lx);
+		return x;
 	    }
 	}
 	INSERT_WORDS(x,hx,lx);


More information about the svn-src-all mailing list