From owner-svn-src-all@FreeBSD.ORG Thu Feb 10 07:38:39 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 513A41065696; Thu, 10 Feb 2011 07:38:39 +0000 (UTC) (envelope-from das@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4081A8FC0A; Thu, 10 Feb 2011 07:38:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p1A7cd7k013720; Thu, 10 Feb 2011 07:38:39 GMT (envelope-from das@svn.freebsd.org) Received: (from das@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p1A7cdO1013718; Thu, 10 Feb 2011 07:38:39 GMT (envelope-from das@svn.freebsd.org) Message-Id: <201102100738.p1A7cdO1013718@svn.freebsd.org> From: David Schultz Date: Thu, 10 Feb 2011 07:38:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218511 - head/lib/msun/src X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Feb 2011 07:38:39 -0000 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);