diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2015-12-14 18:47:13 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2015-12-14 18:47:13 +0100 |
commit | 59aba93c21b9602bb29324581e67c03cede8bf88 (patch) | |
tree | accc8460c027b8e025b5ac024af065b0ddf61859 /mpf | |
parent | 25471cd16e1f3d1d7fc65c87fb2bd67e2e7d4219 (diff) | |
download | gmp-59aba93c21b9602bb29324581e67c03cede8bf88.tar.gz |
mp?/clears.c, mp?/inits.c: Stop supporting empty lists.
Diffstat (limited to 'mpf')
-rw-r--r-- | mpf/clears.c | 3 | ||||
-rw-r--r-- | mpf/inits.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mpf/clears.c b/mpf/clears.c index 68a4cbebd..17eca8208 100644 --- a/mpf/clears.c +++ b/mpf/clears.c @@ -39,11 +39,12 @@ mpf_clears (mpf_ptr x, ...) va_start (ap, x); - while (x != NULL) + do { __GMP_FREE_FUNC_LIMBS (PTR(x), PREC(x) + 1); x = va_arg (ap, mpf_ptr); } + while (x != NULL); va_end (ap); } diff --git a/mpf/inits.c b/mpf/inits.c index db7cacc42..ddcf1141a 100644 --- a/mpf/inits.c +++ b/mpf/inits.c @@ -39,11 +39,12 @@ mpf_inits (mpf_ptr x, ...) va_start (ap, x); - while (x != NULL) + do { mpf_init (x); x = va_arg (ap, mpf_ptr); } + while (x != NULL); va_end (ap); } |