summaryrefslogtreecommitdiff
path: root/cosh.c
diff options
context:
space:
mode:
authordaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-17 15:42:10 +0000
committerdaney <daney@280ebfd0-de03-0410-8827-d642c229c3f4>2001-10-17 15:42:10 +0000
commit91416b09f1299232e471b2b7a133d3c2390adb99 (patch)
tree16aa577181d7444352229939918273bb47801cc1 /cosh.c
parent4486877c948d3f1707099b289291c08932fc908c (diff)
downloadmpfr-91416b09f1299232e471b2b7a133d3c2390adb99.tar.gz
correct few things
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1282 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'cosh.c')
-rw-r--r--cosh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cosh.c b/cosh.c
index 02b81e32d..7c53a85dc 100644
--- a/cosh.c
+++ b/cosh.c
@@ -45,7 +45,7 @@ mpfr_cosh (y, xt, rnd_mode)
/****** Declaration ******/
mpfr_t x;
mp_prec_t Nxt = MPFR_PREC(xt);
- int flag_neg=0, inexact =0;
+ int inexact =0;
if (MPFR_IS_NAN(xt))
{
@@ -70,10 +70,10 @@ mpfr_cosh (y, xt, rnd_mode)
mpfr_init2(x,Nxt);
mpfr_set(x,xt,GMP_RNDN);
- if(MPFR_SIGN(x)<0){
- MPFR_CHANGE_SIGN(x);
- flag_neg=1;
- }
+ if(MPFR_SIGN(x)<0)
+ {
+ MPFR_CHANGE_SIGN(x);
+ }
/* General case */
{