diff options
author | Kevin Ryde <user42@zip.com.au> | 2003-08-17 00:55:30 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2003-08-17 00:55:30 +0200 |
commit | 5273bd51bc8e0ef785f3332beb11d9a7aeb14bfc (patch) | |
tree | 88ed7dd926bb1e1678e905ad336d4aa7ef0eaee1 /gmpxx.h | |
parent | 1bcb11631b2d32fa201cbd54cd5762e3752f00ff (diff) | |
download | gmp-5273bd51bc8e0ef785f3332beb11d9a7aeb14bfc.tar.gz |
(struct __gmp_hypot_function): Correction to mpfr_hypot addition.
Diffstat (limited to 'gmpxx.h')
-rw-r--r-- | gmpxx.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |