summaryrefslogtreecommitdiff
path: root/sqrt.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>1999-06-17 08:56:14 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>1999-06-17 08:56:14 +0000
commite8f8e85bcab5868378b0a674e9fb931b4ecbd1fd (patch)
tree663a04b2d54afdb951eaf52ca6417fb2519d0110 /sqrt.c
parentf9739752bfd12a4639c52d80fbd983e82ba0b84c (diff)
downloadmpfr-e8f8e85bcab5868378b0a674e9fb931b4ecbd1fd.tar.gz
SET_NAN(x) -> SET_NAN(X)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@85 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sqrt.c')
-rw-r--r--sqrt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqrt.c b/sqrt.c
index a61452244..9d373441e 100644
--- a/sqrt.c
+++ b/sqrt.c
@@ -15,7 +15,7 @@ void mpfr_sqrt(mpfr_ptr X, mpfr_srcptr a, unsigned char rnd_mode)
#endif
/* use Newton's iteration x[n+1] = 1/2*(x[n]+a/x[n]),
the error e[n] = x[n]-sqrt(a) satisfies e[n+1] <= e[n]/2/sqrt(a) */
- if (FLAG_NAN(a) || SIGN(a)<0) { SET_NAN(x); return; }
+ if (FLAG_NAN(a) || SIGN(a)<0) { SET_NAN(X); return; }
if (X==a) {
x = (mpfr_ptr) (*_mp_allocate_func) (sizeof(__mpfr_struct));
mpfr_init2(x, PREC(X));