Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm/src Apply patch in PR 45391 from Yui NARUSE: genera...



details:   https://anonhg.NetBSD.org/src/rev/6ef81a941355
branches:  trunk
changeset: 340486:6ef81a941355
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue Sep 08 05:23:31 2015 +0000

description:
Apply patch in PR 45391 from Yui NARUSE: generate HUGE_VAL rather than
-HUGE_VAL for 0^negative. No objection after asking nearly two years
ago if I shouldn't just commit it.

diffstat:

 lib/libm/src/k_standard.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 3c225ece4418 -r 6ef81a941355 lib/libm/src/k_standard.c
--- a/lib/libm/src/k_standard.c Tue Sep 08 04:04:33 2015 +0000
+++ b/lib/libm/src/k_standard.c Tue Sep 08 05:23:31 2015 +0000
@@ -12,7 +12,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: k_standard.c,v 1.19 2013/11/19 19:24:34 joerg Exp $");
+__RCSID("$NetBSD: k_standard.c,v 1.20 2015/09/08 05:23:31 dholland Exp $");
 #endif
 
 #include "math.h"
@@ -469,7 +469,7 @@
                if (_LIB_VERSION == _SVID_)
                  exc.retval = zero;
                else
-                 exc.retval = -HUGE_VAL;
+                 exc.retval = HUGE_VAL;
                if (_LIB_VERSION == _POSIX_)
                  errno = EDOM;
                else if (!matherr(&exc)) {



Home | Main Index | Thread Index | Old Index