summaryrefslogtreecommitdiff
path: root/tests/tget_set_d128.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-19 11:38:05 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-19 11:38:05 +0000
commit479edfdd52332f608b6add009c11422c0dcf1993 (patch)
tree7f852299c47c18c9d381d3253644abdc9fce11bf /tests/tget_set_d128.c
parent1fa3712ba86ff9f234646356906ec5ca52a87aa4 (diff)
downloadmpfr-479edfdd52332f608b6add009c11422c0dcf1993.tar.gz
[tests/tget_set_d128.c] Converting an integer into _Decimal128 is better
than converting a double into _Decimal128. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12779 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tget_set_d128.c')
-rw-r--r--tests/tget_set_d128.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/tget_set_d128.c b/tests/tget_set_d128.c
index 7a8d8f31f..0db84b464 100644
--- a/tests/tget_set_d128.c
+++ b/tests/tget_set_d128.c
@@ -37,8 +37,7 @@ test_set (void)
int inex;
mpfr_init2 (x, 53);
- d128 = 1.0;
- inex = mpfr_set_decimal128 (x, d128, MPFR_RNDN);
+ inex = mpfr_set_decimal128 (x, (_Decimal128) 1, MPFR_RNDN);
if (mpfr_cmp_ui (x, 1) != 0 || inex != 0)
{
printf ("Error in test_set\n");