mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
Update.
2000-12-06 Ulrich Drepper <drepper@redhat.com> * stdio-common/printf_fp.c (__printf_fp): Handle decimal point in x.5 rounding correctly.
This commit is contained in:
parent
d36c3615fc
commit
23a5c823a0
@ -1,3 +1,8 @@
|
||||
2000-12-06 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* stdio-common/printf_fp.c (__printf_fp): Handle decimal point in
|
||||
x.5 rounding correctly.
|
||||
|
||||
2000-12-06 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* stdio-common/perror.c (perror): Conditionalize code dealing with
|
||||
|
@ -923,7 +923,9 @@ __printf_fp (FILE *fp,
|
||||
{
|
||||
wchar_t *wtp = wcp;
|
||||
|
||||
if (digit == L'5' && (*(wcp - 1) & 1) == 0)
|
||||
if (digit == L'5'
|
||||
&& ((*(wcp - 1) != decimalwc && (*(wcp - 1) & 1) == 0)
|
||||
|| ((*(wcp - 1) == decimalwc && (*(wcp - 2) & 1) == 0))))
|
||||
{
|
||||
/* This is the critical case. */
|
||||
if (fracsize == 1 && frac[0] == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user