summaryrefslogtreecommitdiff
path: root/printf
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2018-05-16 08:33:01 +0200
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2018-05-16 08:33:01 +0200
commit35bc1c72b29325b45be74792c660b5f9e5417bea (patch)
tree9ab14b6685a7640d5505e5fd98116b9810c366c4 /printf
parentf101e5fd19a36af3d8fdf623d4cd2a54452f7e12 (diff)
downloadgmp-35bc1c72b29325b45be74792c660b5f9e5417bea.tar.gz
printf/repl-vsnprintf.c: Better handling floating-point specifiers
Diffstat (limited to 'printf')
-rw-r--r--printf/repl-vsnprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/printf/repl-vsnprintf.c b/printf/repl-vsnprintf.c
index ae18733bc..e61d69ed0 100644
--- a/printf/repl-vsnprintf.c
+++ b/printf/repl-vsnprintf.c
@@ -242,7 +242,7 @@ __gmp_replacement_vsnprintf (char *buf, size_t buf_size,
}
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 @@ __gmp_replacement_vsnprintf (char *buf, size_t buf_size,
(void) va_arg (ap, double);
total_width += double_digits;
}
- break;
+ goto next;
case 'h': /* short or char */
case 'j': /* intmax_t */