aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-12-16 06:03:40 +0200
committerArnold D. Robbins <arnold@skeeve.com>2015-12-16 06:03:40 +0200
commitf744d63e3fca8dc8b4d442fe14450f52f523335d (patch)
treebb3be972e70fb111e82c56621ea8524542e0bffe /profile.c
parent3fffebafacda8778122d43d05d5690302ef00731 (diff)
parent9ba56d858e953d2c2e83ba04cfcceb55899dbedd (diff)
downloadegawk-f744d63e3fca8dc8b4d442fe14450f52f523335d.tar.gz
egawk-f744d63e3fca8dc8b4d442fe14450f52f523335d.tar.bz2
egawk-f744d63e3fca8dc8b4d442fe14450f52f523335d.zip
Merge branch 'master' into feature/cmake
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index f5bcf8c5..d49dbbf9 100644
--- a/profile.c
+++ b/profile.c
@@ -1440,9 +1440,10 @@ pp_number(NODE *n)
{
#define PP_PRECISION 6
char *str;
- size_t count;
#ifdef HAVE_MPFR
+ size_t count;
+
if (is_mpg_float(n)) {
count = mpfr_get_prec(n->mpg_numbr) / 3; /* ~ 3.22 binary digits per decimal digit */
emalloc(str, char *, count, "pp_number");