mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-29 18:40:25 +08:00
2003-07-29 Honda Hiroki <hhonda@ipflex.com>
* libc/stdio/vfprintf.c: Set output size to 1 when we have %f format with precision 0 and # flag not specified.
This commit is contained in:
parent
e4bf124e03
commit
42de559299
@ -1,3 +1,8 @@
|
||||
2003-07-29 Honda Hiroki <hhonda@ipflex.com>
|
||||
|
||||
* libc/stdio/vfprintf.c: Set output size to 1 when
|
||||
we have %f format with precision 0 and # flag not specified.
|
||||
|
||||
2003-07-29 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* libc/machine/mn10300/setjmp.S: Never emit both .am33 and
|
||||
|
@ -830,7 +830,9 @@ reswitch: switch (ch) {
|
||||
if (prec || flags & ALT)
|
||||
size += prec + 1;
|
||||
} else /* "0.X" */
|
||||
size = prec + 2;
|
||||
size = (prec || flags & ALT)
|
||||
? prec + 2
|
||||
: 1;
|
||||
} else if (expt >= ndig) { /* fixed g fmt */
|
||||
size = expt;
|
||||
if (flags & ALT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user