summaryrefslogtreecommitdiff
path: root/gmpxx.h
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2003-08-17 00:55:30 +0200
committerKevin Ryde <user42@zip.com.au>2003-08-17 00:55:30 +0200
commit5273bd51bc8e0ef785f3332beb11d9a7aeb14bfc (patch)
tree88ed7dd926bb1e1678e905ad336d4aa7ef0eaee1 /gmpxx.h
parent1bcb11631b2d32fa201cbd54cd5762e3752f00ff (diff)
downloadgmp-5273bd51bc8e0ef785f3332beb11d9a7aeb14bfc.tar.gz
(struct __gmp_hypot_function): Correction to mpfr_hypot addition.
Diffstat (limited to 'gmpxx.h')
-rw-r--r--gmpxx.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gmpxx.h b/gmpxx.h
index e1a11a0a8..3ec9853d4 100644
--- a/gmpxx.h
+++ b/gmpxx.h
@@ -1937,16 +1937,16 @@ struct __gmp_hypot_function
static void eval(mpfr_ptr f, mpfr_srcptr g, double d)
{
mpfr_t temp;
- mpfr_init2 (temp, 8*sizeof(l));
- mpfr_set_d (temp, l, GMP_RNDZ); /* no rounding */
+ mpfr_init2 (temp, 8*sizeof(d));
+ mpfr_set_d (temp, d, GMP_RNDZ); /* no rounding */
mpfr_hypot (f, g, temp, __gmpfr_default_rounding_mode);
mpfr_clear(temp);
}
static void eval(mpfr_ptr f, double d, mpfr_srcptr g)
{
mpfr_t temp;
- mpfr_init2 (temp, 8*sizeof(l));
- mpfr_set_d (temp, l, GMP_RNDZ); /* no rounding */
+ mpfr_init2 (temp, 8*sizeof(d));
+ mpfr_set_d (temp, d, GMP_RNDZ); /* no rounding */
mpfr_hypot (f, g, temp, __gmpfr_default_rounding_mode);
mpfr_clear(temp);
}