summaryrefslogtreecommitdiff
path: root/mpz_set_fr.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpz_set_fr.c')
-rw-r--r--mpz_set_fr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/mpz_set_fr.c b/mpz_set_fr.c
index 38643a336..1d0f1429d 100644
--- a/mpz_set_fr.c
+++ b/mpz_set_fr.c
@@ -19,7 +19,6 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
-#include <stdio.h>
#include "gmp.h"
#include "mpfr.h"
#include "mpfr-impl.h"
@@ -33,11 +32,7 @@ mpz_set_fr (mpz_ptr z, mpfr_srcptr f)
{
int fn, sh;
- if (MPFR_IS_NAN(f) || MPFR_IS_INF(f))
- {
- fprintf (stderr, "Error in mpz_set_fr: input is NaN or Inf\n");
- exit (1);
- }
+ MPFR_ASSERTN(MPFR_IS_FP(f));
fn = 1 + (MPFR_PREC(f) - 1) / BITS_PER_MP_LIMB;