summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-08-10 19:40:07 +0200
committerBruno Haible <bruno@clisp.org>2020-08-10 19:44:49 +0200
commit81d65ad9b9df5cdfd4dd1deb7b712b6e907dd9db (patch)
tree836fd44beac65394eed7b24268e1caec7a061dcc
parentc4ba8f15e35fc2af99366c1c608d5a37a4ff6859 (diff)
downloadgnulib-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--ChangeLog6
-rw-r--r--tests/test-c-ldtoastr.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 19b964ac29..2efe29dfb9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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"));
}