Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdio Ugh, back out last commit. It makes vfprintf...



details:   https://anonhg.NetBSD.org/src/rev/5480c890f58e
branches:  trunk
changeset: 518289:5480c890f58e
user:      augustss <augustss%NetBSD.org@localhost>
date:      Tue Nov 27 18:05:30 2001 +0000

description:
Ugh, back out last commit.  It makes vfprintf depend on -lm.

diffstat:

 lib/libc/stdio/vfprintf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9d9bfb56faab -r 5480c890f58e lib/libc/stdio/vfprintf.c
--- a/lib/libc/stdio/vfprintf.c Tue Nov 27 18:00:55 2001 +0000
+++ b/lib/libc/stdio/vfprintf.c Tue Nov 27 18:05:30 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfprintf.c,v 1.38 2001/11/27 18:00:55 augustss Exp $   */
+/*     $NetBSD: vfprintf.c,v 1.39 2001/11/27 18:05:30 augustss Exp $   */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -41,7 +41,7 @@
 #if 0
 static char *sccsid = "@(#)vfprintf.c  5.50 (Berkeley) 12/16/92";
 #else
-__RCSID("$NetBSD: vfprintf.c,v 1.38 2001/11/27 18:00:55 augustss Exp $");
+__RCSID("$NetBSD: vfprintf.c,v 1.39 2001/11/27 18:05:30 augustss Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -812,7 +812,7 @@
                mode = 2;               /* ndigits significant digits */
        }
 
-       if (copysign(1.0, value) < 0) { /* Use copysign to handle -0.0 */
+       if (value < 0) {
                value = -value;
                *sign = '-';
        } else



Home | Main Index | Thread Index | Old Index