diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-04-11 13:54:32 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2008-04-11 13:54:32 +0000 |
commit | 8adb31d6f2b006dc21545e754d09f0714204dbca (patch) | |
tree | 6754b2561107fef0603944d16de809eae30bba62 /tests/tlog.c | |
parent | 545dd3cc85cbe29a7b9cdcb72677e0c07466011e (diff) | |
download | mpc-8adb31d6f2b006dc21545e754d09f0714204dbca.tar.gz |
eliminated comparisons between signed and unsigned
mainly by casting precisions (unsigned) to mp_exp_t (signed)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@105 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tlog.c')
-rw-r--r-- | tests/tlog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tlog.c b/tests/tlog.c index d60f312..9e75423 100644 --- a/tests/tlog.c +++ b/tests/tlog.c @@ -81,13 +81,14 @@ main() mpc_log (z2, tmp, MPC_RNDNN); /* There is a tiny real part, do not care if it si sufficiently small. */ - if (mpfr_cmp (MPC_IM (z), MPC_IM (z2)) != 0 || MPFR_EXP (MPC_RE (z)) > -4*prec) + if ( mpfr_cmp (MPC_IM (z), MPC_IM (z2)) != 0 + || MPFR_EXP (MPC_RE (z)) > -4 * (mp_exp_t) prec) { printf ("Possible error in log; difference between z and z2=log(exp(z)):\n"); OUT (z); OUT (tmp); OUT (z2); - //exit (1); + exit (1); } } |