From ed56d2d25a842e698cea2090bbc98870b91ae728 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 11 Apr 2007 23:32:56 +0000 Subject: [PATCH] The 2007-04-04 patch was broken. --- ChangeLog | 4 ++++ m4/printf.m4 | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5d39800ba..134353044 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-04-11 Bruno Haible + + * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed. + 2007-04-10 Bruno Haible * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result diff --git a/m4/printf.m4 b/m4/printf.m4 index d39b42fd7..d035172f8 100644 --- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -113,15 +113,15 @@ int main () 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 */ 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 -- 2.11.0