summaryrefslogtreecommitdiff
path: root/mpz/sqrtrem.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-04-11 21:26:42 +0200
committerKevin Ryde <user42@zip.com.au>2000-04-11 21:26:42 +0200
commit402bf7c139bef7b8d625db9bb99bd23bbd6410c6 (patch)
treee49ec3e2e0187ae9c021cb7ef96af9cc3b4f228f /mpz/sqrtrem.c
parent875227b86ea4a53036f29f17c1d377f019b38618 (diff)
downloadgmp-402bf7c139bef7b8d625db9bb99bd23bbd6410c6.tar.gz
Use SQRT_OF_NEGATIVE.
Diffstat (limited to 'mpz/sqrtrem.c')
-rw-r--r--mpz/sqrtrem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/sqrtrem.c b/mpz/sqrtrem.c
index 757cc5dd5..15fcfb5c7 100644
--- a/mpz/sqrtrem.c
+++ b/mpz/sqrtrem.c
@@ -1,7 +1,7 @@
/* mpz_sqrtrem(root,rem,x) -- Set ROOT to floor(sqrt(X)) and REM
to the remainder, i.e. X - ROOT**2.
-Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc.
+Copyright (C) 1991, 1993, 1994, 1996, 2000 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -54,7 +54,7 @@ msqrt (op, root, rem)
TMP_MARK (marker);
op_size = op->_mp_size;
if (op_size < 0)
- op_size = 1 / (op_size > 0); /* Divide by zero for negative OP. */
+ SQRT_OF_NEGATIVE;
if (rem->_mp_alloc < op_size)
_mpz_realloc (rem, op_size);