about summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/printf_fp.c2
-rw-r--r--stdio-common/printf_fphex.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/printf_fp.c b/stdio-common/printf_fp.c
index 8cff7a4d66..34fe918237 100644
--- a/stdio-common/printf_fp.c
+++ b/stdio-common/printf_fp.c
@@ -336,7 +336,7 @@ __printf_fp (FILE *fp,
 
   if (special)
     {
-      int width = info->prec > info->width ? info->prec : info->width;
+      int width = info->width;
 
       if (is_neg || info->showsign || info->space)
 	--width;
diff --git a/stdio-common/printf_fphex.c b/stdio-common/printf_fphex.c
index e2e64695d5..6cdda9e1d4 100644
--- a/stdio-common/printf_fphex.c
+++ b/stdio-common/printf_fphex.c
@@ -189,7 +189,7 @@ __printf_fphex (FILE *fp,
 
   if (special)
     {
-      int width = info->prec > info->width ? info->prec : info->width;
+      int width = info->width;
 
       if (negative || info->showsign || info->space)
 	--width;