summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2012-02-24 11:59:09 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2012-02-24 11:59:09 +0000
commitef178feb73392dd89678552d6b6ef126a014bf85 (patch)
tree7a609db7b3b2aeeb74ebb7e6002aabaaf6107a3a /src
parent91f9b3f02dc4b1e68070370eaaf8a59454defd3a (diff)
downloadmpfr-ef178feb73392dd89678552d6b6ef126a014bf85.tar.gz
Corrected a typo in MPFR_LOG_FUNC of add_d.c, add_ui.c and mul_d.c
(mpfr_get_prec → mpfr_log_prec), fixing bug 13933. The consequence was random freezes (on the same binary) with dynamic linking (and just more memory with static linking to the MPFR library) when logging was used. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8043 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src')
-rw-r--r--src/add_d.c2
-rw-r--r--src/add_ui.c2
-rw-r--r--src/mul_d.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/add_d.c b/src/add_d.c
index 04a92586e..b49dbfc35 100644
--- a/src/add_d.c
+++ b/src/add_d.c
@@ -34,7 +34,7 @@ mpfr_add_d (mpfr_ptr a, mpfr_srcptr b, double c, mpfr_rnd_t rnd_mode)
(("b[%Pu]=%.*Rg c=%.20g rnd=%d",
mpfr_get_prec(b), mpfr_log_prec, b, c, rnd_mode),
("a[%Pu]=%.*Rg inexact=%d",
- mpfr_get_prec (a), mpfr_get_prec, a, inexact));
+ mpfr_get_prec (a), mpfr_log_prec, a, inexact));
MPFR_SAVE_EXPO_MARK (expo);
diff --git a/src/add_ui.c b/src/add_ui.c
index 2215e390e..4d20592f7 100644
--- a/src/add_ui.c
+++ b/src/add_ui.c
@@ -29,7 +29,7 @@ mpfr_add_ui (mpfr_ptr y, mpfr_srcptr x, unsigned long int u, mpfr_rnd_t rnd_mode
MPFR_LOG_FUNC
(("x[%Pu]=%.*Rg u=%d rnd=%d",
mpfr_get_prec(x), mpfr_log_prec, x, u, rnd_mode),
- ("y[%Pu]=%.*Rg", mpfr_get_prec (y), mpfr_get_prec, y));
+ ("y[%Pu]=%.*Rg", mpfr_get_prec (y), mpfr_log_prec, y));
if (MPFR_LIKELY(u != 0) ) /* if u=0, do nothing */
{
diff --git a/src/mul_d.c b/src/mul_d.c
index 25322f02f..96f348f33 100644
--- a/src/mul_d.c
+++ b/src/mul_d.c
@@ -34,7 +34,7 @@ mpfr_mul_d (mpfr_ptr a, mpfr_srcptr b, double c, mpfr_rnd_t rnd_mode)
(("b[%Pu]=%.*Rg c=%.20g rnd=%d",
mpfr_get_prec(b), mpfr_log_prec, b, c, rnd_mode),
("a[%Pu]=%.*Rg inexact=%d",
- mpfr_get_prec (a), mpfr_get_prec, a, inexact));
+ mpfr_get_prec (a), mpfr_log_prec, a, inexact));
MPFR_SAVE_EXPO_MARK (expo);