diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-12-15 14:39:35 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2003-12-15 14:39:35 +0000 |
commit | 2c85730f36ac232ff81bda66687af824546a81c7 (patch) | |
tree | 686c58a7b3d868f56d430a31800748713801680e /tests/tcmp2.c | |
parent | c0fca7cac78d758cb0bb6eaaad5f4463b96bd376 (diff) | |
download | mpfr-2c85730f36ac232ff81bda66687af824546a81c7.tar.gz |
+ Optimize a few div.c
+ Remove some warnings in asin.c, atan.c.
+ Include limits.h before gmp-impl.h in mpfr-impl.h
+ mpfr-tests.h doesn't include anumore standard include files.
+ Test files include only standard includes and mpfr-tests.h.
+ Add some forgotten mpfr_clear in mpf[r]_compat.
+ Remove some warnings in the tests.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2576 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcmp2.c')
-rw-r--r-- | tests/tcmp2.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/tcmp2.c b/tests/tcmp2.c index a2ae6e6cc..401f1f0d7 100644 --- a/tests/tcmp2.c +++ b/tests/tcmp2.c @@ -21,10 +21,7 @@ MA 02111-1307, USA. */ #include <stdio.h> #include <stdlib.h> -#include "gmp.h" -#include "gmp-impl.h" -#include "mpfr.h" -#include "mpfr-impl.h" + #include "mpfr-test.h" /* set bit n of x to b, where bit 0 is the most significant one */ @@ -169,13 +166,13 @@ tcmp2 (double x, double y, int i) exit (1); } } - else if (j != i) + else if (j != (unsigned) i) { printf ("Error in mpfr_cmp2 for\nx="); mpfr_out_str (stdout, 2, 0, xx, GMP_RNDN); printf ("\ny="); mpfr_out_str (stdout, 2, 0, yy, GMP_RNDN); - printf ("\ngot %lu instead of %u\n", j, i); + printf ("\ngot %lu instead of %d\n", j, i); exit (1); } mpfr_clear(xx); mpfr_clear(yy); |