Fix syntax error in test.
authorBruno Haible <bruno@clisp.org>
Sat, 19 May 2007 20:29:34 +0000 (20:29 +0000)
committerBruno Haible <bruno@clisp.org>
Sat, 19 May 2007 20:29:34 +0000 (20:29 +0000)
ChangeLog
m4/frexp.m4
m4/frexpl.m4

index 167b468..00a6f67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-05-19  Bruno Haible  <bruno@clisp.org>
 
+       * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
+       * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
+
+2007-05-19  Bruno Haible  <bruno@clisp.org>
+
        * lib/float_.h: New file.
        * m4/float_h.m4: New file.
        * modules/float: New file.
index d423f2c..8e93322 100644 (file)
@@ -1,4 +1,4 @@
-# frexp.m4 serial 2
+# frexp.m4 serial 3
 dnl Copyright (C) 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -84,8 +84,8 @@ int main()
         return 1;
     }
   /* Test on infinite numbers.  */
+  x = 1.0 / 0.0;
   {
-    x = 1.0 / 0.0;
     int exp;
     double y = frexp (x, &exp);
     if (y != x)
index 8832181..4db1c02 100644 (file)
@@ -1,4 +1,4 @@
-# frexpl.m4 serial 3
+# frexpl.m4 serial 4
 dnl Copyright (C) 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -108,16 +108,16 @@ int main()
 {
   volatile long double x;
   /* Test on finite numbers.  */
+  x = 16.0L;
   {
     int exp = -9999;
-    x = 16.0L;
     frexpl (x, &exp);
     if (exp != 5)
       return 1;
   }
   /* Test on infinite numbers.  */
+  x = 1.0L / 0.0L;
   {
-    x = 1.0L / 0.0L;
     int exp;
     long double y = frexpl (x, &exp);
     if (y != x)