diff options
author | Bruno Haible <bruno@clisp.org> | 2020-08-10 19:40:07 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2020-08-10 19:44:49 +0200 |
commit | 81d65ad9b9df5cdfd4dd1deb7b712b6e907dd9db (patch) | |
tree | 836fd44beac65394eed7b24268e1caec7a061dcc | |
parent | c4ba8f15e35fc2af99366c1c608d5a37a4ff6859 (diff) | |
download | gnulib-81d65ad9b9df5cdfd4dd1deb7b712b6e907dd9db.tar.gz |
c-ldtoastr tests: Fix test failure.
* tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
is longer than 'double'.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | tests/test-c-ldtoastr.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2020-08-10 Bruno Haible <bruno@clisp.org> + c-ldtoastr tests: Fix test failure. + * tests/test-c-ldtoastr.c (main): Support platforms where 'long double' + is longer than 'double'. + +2020-08-10 Bruno Haible <bruno@clisp.org> + Revert autoupdate's revert. * config/srclist.txt: Mark intprops.h as needing sync with glibc. diff --git a/tests/test-c-ldtoastr.c b/tests/test-c-ldtoastr.c index 140f0c6d8b..7e38422dbf 100644 --- a/tests/test-c-ldtoastr.c +++ b/tests/test-c-ldtoastr.c @@ -50,7 +50,7 @@ main (int argc, char *argv[]) { char buf[DBL_BUFSIZE_BOUND]; - c_ldtoastr (buf, sizeof buf, 0, 0, 0.1); + c_ldtoastr (buf, sizeof buf, 0, 0, 0.1L); ASSERT (!strcmp (buf, "0.1")); } |