[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Wed May 16 06:36:37 UTC 2018
details: /var/hg/gmp/rev/9da2c35e811c
changeset: 17625:9da2c35e811c
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Wed May 16 08:33:01 2018 +0200
description:
printf/repl-vsnprintf.c: Better handling floating-point specifiers
details: /var/hg/gmp/rev/41e50c4fdc46
changeset: 17626:41e50c4fdc46
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Wed May 16 08:36:03 2018 +0200
description:
Changelog
diffstat:
ChangeLog | 3 +++
printf/repl-vsnprintf.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 9185f02080de -r 41e50c4fdc46 ChangeLog
--- a/ChangeLog Wed May 16 07:40:09 2018 +0200
+++ b/ChangeLog Wed May 16 08:36:03 2018 +0200
@@ -11,6 +11,9 @@
* mpn/generic/get_d.c: Enhance generic code using DBL_MANT_DIG.
+ * printf/repl-vsnprintf.c: Better handling floating-point
+ specifiers "EeGgFf" (Thanks Vincent Lefevre).
+
2018-05-04 Marco Bodrato <bodrato at mail.dm.unipi.it>
* doc/gmp.texi (mpq_*_str): Document the full base allowed range.
diff -r 9185f02080de -r 41e50c4fdc46 printf/repl-vsnprintf.c
--- a/printf/repl-vsnprintf.c Wed May 16 07:40:09 2018 +0200
+++ b/printf/repl-vsnprintf.c Wed May 16 08:36:03 2018 +0200
@@ -242,7 +242,7 @@
}
else
(void) va_arg (ap, double);
- break;
+ goto next;
case 'f':
/* Requested decimals, sign and point, and a margin for error,
@@ -263,7 +263,7 @@
(void) va_arg (ap, double);
total_width += double_digits;
}
- break;
+ goto next;
case 'h': /* short or char */
case 'j': /* intmax_t */
More information about the gmp-commit
mailing list