From: Bruno Haible Date: Mon, 10 Aug 2020 17:40:07 +0000 (+0200) Subject: c-ldtoastr tests: Fix test failure. X-Git-Tag: v1.0~3787 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81d65ad9b9df5cdfd4dd1deb7b712b6e907dd9db;p=thirdparty%2Fgnulib.git c-ldtoastr tests: Fix test failure. * tests/test-c-ldtoastr.c (main): Support platforms where 'long double' is longer than 'double'. --- 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")); }