summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2020-10-29 18:17:11 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2020-10-29 18:17:11 +0100
commit5fe7082202d44dcb5d1e294a02712c41e6a217b9 (patch)
treefbb7e3fbfea05c15aa9fc38c0e32013950b80605 /tests
parentac14e469c54e0922ed317670b853ee4b5effddd4 (diff)
downloadgmp-5fe7082202d44dcb5d1e294a02712c41e6a217b9.tar.gz
tests/mpf/t-trunc.c: Use mpf_size.
Diffstat (limited to 'tests')
-rw-r--r--tests/mpf/t-trunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mpf/t-trunc.c b/tests/mpf/t-trunc.c
index 31fc2bd3f..6543a1ee9 100644
--- a/tests/mpf/t-trunc.c
+++ b/tests/mpf/t-trunc.c
@@ -1,6 +1,6 @@
/* Test mpf_trunc, mpf_ceil, mpf_floor.
-Copyright 2001, 2002 Free Software Foundation, Inc.
+Copyright 2001, 2002, 2020 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
@@ -78,7 +78,7 @@ check_one (mpf_srcptr src, mpf_srcptr trunc, mpf_srcptr ceil, mpf_srcptr floor)
/* Can't do these unconditionally in case truncation by mpf_set strips
some low non-zero limbs which would have rounded the result. */
- if (ABSIZ(src) <= PREC(trunc)+1)
+ if (mpf_size (src) <= PREC(trunc)+1)
{
CHECK_INPLACE ("mpf_ceil", mpf_ceil, ceil);
CHECK_INPLACE ("mpf_floor", mpf_floor, floor);