From fb6cec99188f49c244f0ef8a49cff5a53363a3a5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 19 May 2007 20:29:34 +0000 Subject: [PATCH] Fix syntax error in test. --- ChangeLog | 5 +++++ m4/frexp.m4 | 4 ++-- m4/frexpl.m4 | 6 +++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 167b46812..00a6f6769 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-05-19 Bruno Haible + * 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 + * lib/float_.h: New file. * m4/float_h.m4: New file. * modules/float: New file. diff --git a/m4/frexp.m4 b/m4/frexp.m4 index d423f2c2c..8e9332235 100644 --- 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 @@ 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) diff --git a/m4/frexpl.m4 b/m4/frexpl.m4 index 883218123..4db1c0289 100644 --- 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 @@ 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) -- 2.11.0