summaryrefslogtreecommitdiff
path: root/get_z.c
diff options
context:
space:
mode:
Diffstat (limited to 'get_z.c')
-rw-r--r--get_z.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/get_z.c b/get_z.c
index 7898f746c..e158a98cd 100644
--- a/get_z.c
+++ b/get_z.c
@@ -44,6 +44,6 @@ mpfr_get_z (mpz_ptr z, mpfr_srcptr f, mp_rnd_t rnd)
else
mpz_div_2exp (z, z, -exp);
mpfr_clear (r);
-
- return inex == 2 ? 1 : inex == -2 ? -1 : 0;
+
+ return inex;
}