summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-08-04 20:31:01 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-08-04 20:31:01 +0000
commit02615a0632aca563f801d510e20711acdac0a233 (patch)
tree0a6ee1a863395d94f34f4868d1ef49f4350e5b30
parent0b77134ecd9758f2fefe9a808354bfe56137aca4 (diff)
downloadmpfr-02615a0632aca563f801d510e20711acdac0a233.tar.gz
[tests/tsi_op.c] Fixed a macro. There were no consequences except
spurious null statements. (merged changeset r10724 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10728 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--tests/tsi_op.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/tsi_op.c b/tests/tsi_op.c
index 84eb744b9..b40a1bd00 100644
--- a/tests/tsi_op.c
+++ b/tests/tsi_op.c
@@ -27,13 +27,15 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#include "mpfr-test.h"
#define ERROR1(s,i,z,exp) \
- { \
- printf ("Error for " s " and i=%d\n", i); \
- printf ("Expected %s\n", exp); \
- printf ("Got "); mpfr_out_str (stdout, 16, 0, z, MPFR_RNDN); \
- putchar ('\n'); \
- exit(1); \
- }
+ do \
+ { \
+ printf ("Error for " s " and i=%d\n", i); \
+ printf ("Expected %s\n", exp); \
+ printf ("Got "); mpfr_out_str (stdout, 16, 0, z, MPFR_RNDN); \
+ putchar ('\n'); \
+ exit(1); \
+ } \
+ while (0)
const struct {
const char * op1;