summaryrefslogtreecommitdiff
path: root/tests/tmul.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/tmul.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/tmul.c')
-rw-r--r--tests/tmul.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tmul.c b/tests/tmul.c
index 2f61fb5..9c90ff1 100644
--- a/tests/tmul.c
+++ b/tests/tmul.c
@@ -1,6 +1,6 @@
/* tmul -- test file for mpc_mul.
-Copyright (C) 2002, 2005, 2008, 2009 Andreas Enge, Paul Zimmermann, Philippe Th\'eveny
+Copyright (C) 2002, 2005, 2008, 2009, 2010 Andreas Enge, Paul Zimmermann, Philippe Th\'eveny
This file is part of the MPC Library.
@@ -134,7 +134,7 @@ check_regular (void)
mpfr_set_str (MPC_IM (y), "-0xECp-146", 16, GMP_RNDN);
cmpmul (x, y, MPC_RNDNN);
- for (prec = 2; prec < 1000; prec = prec * 1.1 + 1)
+ for (prec = 2; prec < 1000; prec = (mpfr_prec_t) (prec * 1.1 + 1))
{
mpc_set_prec (x, prec);
mpc_set_prec (y, prec);