From 81d65ad9b9df5cdfd4dd1deb7b712b6e907dd9db Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 10 Aug 2020 19:40:07 +0200 Subject: [PATCH] c-ldtoastr tests: Fix test failure. * tests/test-c-ldtoastr.c (main): Support platforms where 'long double' is longer than 'double'. --- ChangeLog | 6 ++++++ tests/test-c-ldtoastr.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 19b964ac29..2efe29dfb9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-08-10 Bruno Haible + + 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 Revert autoupdate's revert. 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")); } -- 2.39.5