mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
Fix tst-long-dbl-fphex swprintf length calculation.
This commit is contained in:
parent
a03d8ea77f
commit
12c22bc4e3
@ -1,3 +1,8 @@
|
||||
2013-09-24 Olivier Langlois <olivier@olivierlanglois.net>
|
||||
|
||||
* stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
|
||||
argument calculation.
|
||||
|
||||
2013-09-24 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
|
||||
|
@ -28,9 +28,9 @@ do_test (void)
|
||||
int result = 0;
|
||||
const long double x = 24.5;
|
||||
wchar_t a[16];
|
||||
swprintf (a, sizeof (a), L"%La\n", x);
|
||||
swprintf (a, sizeof a / sizeof a[0], L"%La\n", x);
|
||||
wchar_t A[16];
|
||||
swprintf (A, sizeof (A) / sizeof (A[0]), L"%LA\n", x);
|
||||
swprintf (A, sizeof A / sizeof A[0], L"%LA\n", x);
|
||||
|
||||
/* Here wprintf can return four valid variants. We must accept all
|
||||
of them. */
|
||||
|
Loading…
Reference in New Issue
Block a user