diff options
| author | phil <phil@NetBSD.org> | 1997-08-29 05:31:11 +0000 |
|---|---|---|
| committer | phil <phil@NetBSD.org> | 1997-08-29 05:31:11 +0000 |
| commit | a25ce426d49cb1aa7ce60d3e577caae94db49e9e (patch) | |
| tree | 500e1d140523b0a0f8492fc5137c8d9b9ed951dc /lib/libc/stdio/vfprintf.c | |
| parent | c3b0e18db8b99d9dafd93b02af20596af4a7e2e9 (diff) | |
Remove the flag test when seeing if _double is zero or not. We
are only testing for the cvt problem, not for alternate forms.
This change makes %#e and %e both correctly print 0. It is just
a question of is it the proper number of zeros or not?
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
| -rw-r--r-- | lib/libc/stdio/vfprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index e5849a12f19..20ea1001863 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfprintf.c,v 1.20 1997/07/13 20:15:34 christos Exp $ */ +/* $NetBSD: vfprintf.c,v 1.21 1997/08/29 05:31:11 phil 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.20 1997/07/13 20:15:34 christos Exp $"); +__RCSID("$NetBSD: vfprintf.c,v 1.21 1997/08/29 05:31:11 phil Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -685,7 +685,7 @@ number: if ((dprec = prec) >= 0) ox[0] = *cp++; ox[1] = '.'; PRINT(ox, 2); - if (_double || (flags & ALT) == 0) { + if (_double) { PRINT(cp, ndig-1); } else /* 0.[0..] */ /* __dtoa irregularity */ |
