mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 14:40:06 +00:00
Update.
2000-07-31 H.J. Lu <hjl@gnu.org> * sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly handle the wchar_t array.
This commit is contained in:
parent
b3cedb0912
commit
a535ce141f
@ -1,3 +1,8 @@
|
|||||||
|
2000-07-31 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* sysdeps/generic/printf_fphex.c (__printf_fphex): Correctly
|
||||||
|
handle the wchar_t array.
|
||||||
|
|
||||||
2000-07-31 Ulrich Drepper <drepper@redhat.com>
|
2000-07-31 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* iconvdata/gb18030.c: Don't map to and from positions in ISO
|
* iconvdata/gb18030.c: Don't map to and from positions in ISO
|
||||||
|
@ -284,21 +284,21 @@ __printf_fphex (FILE *fp,
|
|||||||
|
|
||||||
if (sizeof (unsigned long int) > 6)
|
if (sizeof (unsigned long int) > 6)
|
||||||
{
|
{
|
||||||
wnumstr = _itowa_word (num, wnumbuf + sizeof wnumbuf, 16,
|
wnumstr = _itowa_word (num, wnumbuf + (sizeof wnumbuf) / sizeof (wchar_t), 16,
|
||||||
info->spec == 'A');
|
info->spec == 'A');
|
||||||
numstr = _itoa_word (num, numbuf + sizeof numbuf, 16,
|
numstr = _itoa_word (num, numbuf + sizeof numbuf, 16,
|
||||||
info->spec == 'A');
|
info->spec == 'A');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wnumstr = _itowa (num, wnumbuf + sizeof wnumbuf, 16,
|
wnumstr = _itowa (num, wnumbuf + sizeof wnumbuf / sizeof (wchar_t), 16,
|
||||||
info->spec == 'A');
|
info->spec == 'A');
|
||||||
numstr = _itoa (num, numbuf + sizeof numbuf, 16,
|
numstr = _itoa (num, numbuf + sizeof numbuf, 16,
|
||||||
info->spec == 'A');
|
info->spec == 'A');
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fill with zeroes. */
|
/* Fill with zeroes. */
|
||||||
while (wnumstr > wnumbuf + (sizeof wnumbuf - 52 / 4))
|
while (wnumstr > wnumbuf + (sizeof wnumbuf - 52) / sizeof (wchar_t))
|
||||||
{
|
{
|
||||||
*--wnumstr = L'0';
|
*--wnumstr = L'0';
|
||||||
*--numstr = '0';
|
*--numstr = '0';
|
||||||
|
Loading…
Reference in New Issue
Block a user