mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
[BZ #2908]
* stdio-common/printf_fphex.c (__printf_fphex): When rounding up 'f', use '1' as leading digit not '\1'. * stdio-common/Makefile (tests): Add bug16. * stdio-common/bug16.c: New file. [BZ #2914] * sysdeps/unix/sysv/linux/gethostid.c: Don't define OLD_HOSTIDFILE and don't try to open it. The patch introducing the macro contained a bug and used the same file name as the new file instead of using /var/adm/hostid. Nobody complaint so I'm taking this out completely. [BZ #2926] * assert/assert.h: Move cast to void inside ?: to quiet gcc. Patch by Jerry James <Jerry.James@usu.edu>.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* Print floating point number in hexadecimal notation according to ISO C99.
|
||||
Copyright (C) 1997-2002,2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 1997-2002,2004,2006 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
||||
|
||||
@ -399,11 +399,11 @@ __printf_fphex (FILE *fp,
|
||||
++leading;
|
||||
else
|
||||
{
|
||||
leading = 1;
|
||||
leading = '1';
|
||||
if (expnegative)
|
||||
{
|
||||
exponent += 4;
|
||||
if (exponent >= 0)
|
||||
exponent -= 4;
|
||||
if (exponent <= 0)
|
||||
expnegative = 0;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user