summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-08-05 09:29:29 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-08-05 09:29:29 +0000
commit5718e5a8bd8cc63fe088b2e4d2f46d1c3bc0ff28 (patch)
tree83579416d3caced6cd6c26e09f050a0439b15168 /doc
parent378ea71aa4586961eeb25ca978bad89053d95315 (diff)
downloadmpfr-5718e5a8bd8cc63fe088b2e4d2f46d1c3bc0ff28.tar.gz
Update concerning the P type specifier for formatted output, since
mpfr_prec_t was changed to a signed type in MPFR 3.0.0. * doc/mpfr.texi: d and i can be used (o, u, x, and X are still OK in practice since a mpfr_prec_t value is usually nonnegative); changed a "unsigned int" to "int". * src/vasprintf.c: updated a comment. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9160 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'doc')
-rw-r--r--doc/mpfr.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/mpfr.texi b/doc/mpfr.texi
index 173d4a5f6..417435569 100644
--- a/doc/mpfr.texi
+++ b/doc/mpfr.texi
@@ -2322,10 +2322,11 @@ not be used with other types.
With conversion specification not involving @samp{P} and @samp{R} types,
@code{mpfr_printf} behaves exactly as @code{gmp_printf}.
-The @samp{P} type specifies that a following @samp{o}, @samp{u}, @samp{x}, or
-@samp{X} conversion specifier applies to a @code{mpfr_prec_t} argument.
+The @samp{P} type specifies that a following @samp{d}, @samp{i},
+@samp{o}, @samp{u}, @samp{x}, or @samp{X} conversion specifier applies
+to a @code{mpfr_prec_t} argument.
It is needed because the @code{mpfr_prec_t} type does not necessarily
-correspond to an @code{unsigned int} or any fixed standard type.
+correspond to an @code{int} or any fixed standard type.
The @samp{precision} field specifies the minimum number of digits to
appear. The default @samp{precision} is 1.
For example: