Mercurial > hg > octave-lyh > gnulib-hg
changeset 8663:e2189cab039d
The 2007-04-04 patch was broken.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 11 Apr 2007 23:32:56 +0000 |
parents | 023aa5c883a7 |
children | 40c507f55b0f |
files | ChangeLog m4/printf.m4 |
diffstat | 2 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-04-11 Bruno Haible <bruno@clisp.org> + + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed. + 2007-04-10 Bruno Haible <bruno@clisp.org> * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
--- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -113,15 +113,15 @@ return 1; /* This catches a FreeBSD 6.1 bug: it doesn't round. */ if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0 - || (strcmp (result, "0x1.83p+0 33") != 0 - && strcmp (result, "0x3.05p-1 33") != 0 - && strcmp (result, "0x6.0ap-2 33") != 0 - && strcmp (result, "0xc.14p-3 33") != 0)) + || (strcmp (buf, "0x1.83p+0 33") != 0 + && strcmp (buf, "0x3.05p-1 33") != 0 + && strcmp (buf, "0x6.0ap-2 33") != 0 + && strcmp (buf, "0xc.14p-3 33") != 0)) return 1; /* This catches a FreeBSD 6.1 bug. See <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */ if (sprintf (buf, "%010a %d", 1.0 / 0.0, 33, 44, 55) < 0 - || result[0] == '0') + || buf[0] == '0') return 1; /* This catches a MacOS X 10.3.9 (Darwin 7.9) bug. */ if (sprintf (buf, "%.1a", 1.999) < 0