aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/vfprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/vfprintf.c')
-rw-r--r--stdio-common/vfprintf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c
index 193c392..1643f37 100644
--- a/stdio-common/vfprintf.c
+++ b/stdio-common/vfprintf.c
@@ -495,8 +495,10 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
{ \
if (is_long) \
number.word = va_arg (ap, unsigned long int); \
+ else if (!is_short) \
+ number.word = va_arg (ap, unsigned int); \
else \
- number.word = va_arg (ap, unsigned int); /* Promoted. */ \
+ number.word = (unsigned short int) va_arg (ap, unsigned int); \
\
LABEL (number): \
if (prec < 0) \