diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-08-13 19:16:35 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-08-13 19:16:35 +0000 |
commit | e912815d30df3264d2e6df15b9cf9cc8cd144487 (patch) | |
tree | 55ffc821fc97e7b3fd4f1f0a2a0a215e38847dcc /lib | |
parent | 1cec88d33a7fd9394e46e4a55c8c0105120061fd (diff) |
Fix a bug with the %e flag introduced in a -Wall pass. The original
code was in error but due to C precedence rules it didn't cause a
problem.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index aef694bfbcc..6b47bcec834 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: vfprintf.c,v 1.12 2001/07/09 06:57:45 deraadt Exp $"; +static char *rcsid = "$OpenBSD: vfprintf.c,v 1.13 2001/08/13 19:16:34 millert Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -740,7 +740,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 */ |