aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/printf-parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/printf-parse.h')
-rw-r--r--stdio-common/printf-parse.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/stdio-common/printf-parse.h b/stdio-common/printf-parse.h
index f1fecdb275..30f381320e 100644
--- a/stdio-common/printf-parse.h
+++ b/stdio-common/printf-parse.h
@@ -275,7 +275,10 @@ parse_one_spec (const UCHAR_T *format, size_t posn, struct printf_spec *spec,
{
case L_('h'):
/* int's are short int's. */
- spec->info.is_short = 1;
+ if (spec->info.is_short == 0)
+ spec->info.is_short = 1;
+ else
+ spec->info.is_short = 2;
break;
case L_('l'):
/* int's are long int's. */