NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/44545: Argument to INSERT_WORDS in nexttoward.c is wrong.
>Number: 44545
>Category: lib
>Synopsis: Argument to INSERT_WORDS in nexttoward.c is wrong.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 10 16:25:00 +0000 2011
>Originator: Henning Petersen
>Release: NetBSD-current
>Organization:
>Environment:
>Description:
Argument to INSERT_WORDS in nexttoward.c is wrong.
This bug results in a type mismatch .
>How-To-Repeat:
>Fix:
diff -u -r1.1 s_nexttoward.c
--- lib/libm/src/s_nexttoward.c 15 Sep 2010 16:12:05 -0000 1.1
+++ lib/libm/src/s_nexttoward.c 10 Feb 2011 09:24:47 -0000
@@ -79,8 +79,8 @@
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);
Home |
Main Index |
Thread Index |
Old Index