NetBSD Problem Report #44545
From www@NetBSD.org Thu Feb 10 16:24:03 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id CC4E963B873
for <gnats-bugs@gnats.NetBSD.org>; Thu, 10 Feb 2011 16:24:03 +0000 (UTC)
Message-Id: <20110210162403.2247563B842@www.NetBSD.org>
Date: Thu, 10 Feb 2011 16:24:03 +0000 (UTC)
From: henning.petersen@t-online.de
Reply-To: henning.petersen@t-online.de
To: gnats-bugs@NetBSD.org
Subject: Argument to INSERT_WORDS in nexttoward.c is wrong.
X-Send-Pr-Version: www-1.0
>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);
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.