]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
c-ldtoastr tests: Fix test failure.
authorBruno Haible <bruno@clisp.org>
Mon, 10 Aug 2020 17:40:07 +0000 (19:40 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 10 Aug 2020 17:44:49 +0000 (19:44 +0200)
* tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
is longer than 'double'.

ChangeLog
tests/test-c-ldtoastr.c

index 19b964ac298c5f2c575333e414495c4de50638ae..2efe29dfb90c8c72acef15daf58fa128ad8b21eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index 140f0c6d8b348feffec693f1984b02eeb51aeed1..7e38422dbf5ca8b1ad6a80796fec4982412ed215 100644 (file)
@@ -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"));
   }