summaryrefslogtreecommitdiff
path: root/src/vasprintf.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-12-15 15:23:00 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-12-15 15:23:00 +0000
commit5767a680cf6d2b601865e77f328a5dd9cb8a5e6a (patch)
tree28dd980977c68b8dbcc07ad47dfa433e0c5aca2f /src/vasprintf.c
parent787c2401d7effb6368e986c7e0d0a53e5b7d5435 (diff)
downloadmpfr-5767a680cf6d2b601865e77f328a5dd9cb8a5e6a.tar.gz
Merged the latest changes from the trunk.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@11049 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/vasprintf.c')
-rw-r--r--src/vasprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vasprintf.c b/src/vasprintf.c
index a3bf00470..87eb8cd11 100644
--- a/src/vasprintf.c
+++ b/src/vasprintf.c
@@ -1588,7 +1588,7 @@ partition_number (struct number_parts *np, mpfr_srcptr p,
}
else if (spec.spec == 'f' || spec.spec == 'F')
{
- if (spec.prec == -1)
+ if (spec.prec < 0)
spec.prec = 6;
if (regular_fg (np, p, spec, NULL) == -1)
goto error;