summaryrefslogtreecommitdiff
path: root/tests/tadd_fr.c
diff options
context:
space:
mode:
authorenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-08-31 20:31:00 +0000
committerenge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2010-08-31 20:31:00 +0000
commit3c1f08c2642b45c16bc0a938a9947df7e712ba2c (patch)
tree431cabee40c131445ce5c76ed7deae7146827e0c /tests/tadd_fr.c
parent942687bd67524983399677340270d236278cf333 (diff)
downloadmpc-3c1f08c2642b45c16bc0a938a9947df7e712ba2c.tar.gz
explicit casts in test/ to avoid warnings with '-Wconversion'
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@824 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tadd_fr.c')
-rw-r--r--tests/tadd_fr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tadd_fr.c b/tests/tadd_fr.c
index b51f3ce..45159c3 100644
--- a/tests/tadd_fr.c
+++ b/tests/tadd_fr.c
@@ -1,6 +1,6 @@
/* test file for mpc_add_fr.
-Copyright (C) 2008 Philippe Th\'eveny, Andreas Enge
+Copyright (C) 2008, 2010 Philippe Th\'eveny, Andreas Enge
This file is part of the MPC Library.
@@ -46,7 +46,7 @@ check_ternary_value (mpfr_prec_t prec_max, mpfr_prec_t step)
}
mpc_set_ui (z, 1, MPC_RNDNN);
- mpc_mul_2exp (z, z, prec, MPC_RNDNN);
+ mpc_mul_2exp (z, z, (unsigned long int) prec, MPC_RNDNN);
if (mpc_add_fr (z, z, f, MPC_RNDNN) == 0)
{
fprintf (stderr, "Error in mpc_add_fr: 2^prec+1 cannot be exact\n");