changeset 8845:6edec1d2af09

Fix syntax error in test.
author Bruno Haible <bruno@clisp.org>
date Sat, 19 May 2007 20:29:34 +0000
parents 3b533f98ba19
children 6fe000202977
files ChangeLog m4/frexp.m4 m4/frexpl.m4
diffstat 3 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
--- a/m4/frexp.m4
+++ b/m4/frexp.m4
@@ -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 @@
         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)
--- a/m4/frexpl.m4
+++ b/m4/frexpl.m4
@@ -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 @@
 {
   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)