diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-08-04 12:18:54 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-08-04 12:18:54 +0000 |
commit | 0b77134ecd9758f2fefe9a808354bfe56137aca4 (patch) | |
tree | 44ec28eaca98a2a8cc17c93f639031564915ca8e | |
parent | 7a68c63e994cb5cd78f6bee7612a3878e497e9b8 (diff) | |
download | mpfr-0b77134ecd9758f2fefe9a808354bfe56137aca4.tar.gz |
[tests/tset_{si,sj}.c] Fixed macros. There were no consequences except
spurious null statements.
(merged changeset r10721 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10722 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | tests/tset_si.c | 2 | ||||
-rw-r--r-- | tests/tset_sj.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/tset_si.c b/tests/tset_si.c index ac74fd082..1af8b3314 100644 --- a/tests/tset_si.c +++ b/tests/tset_si.c @@ -26,7 +26,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-test.h" -#define ERROR(str) { printf ("Error for " str "\n"); exit (1); } +#define ERROR(str) do { printf ("Error for " str "\n"); exit (1); } while (0) static void test_2exp (void) diff --git a/tests/tset_sj.c b/tests/tset_sj.c index 63f55d5f8..f71a48690 100644 --- a/tests/tset_sj.c +++ b/tests/tset_sj.c @@ -42,7 +42,7 @@ main (void) #else -#define ERROR(str) { printf ("Error for " str "\n"); exit (1); } +#define ERROR(str) do { printf ("Error for " str "\n"); exit (1); } while (0) static int inexact_sign (int x) |