(process_arg): Fix decimal format with 'h' flag and positional arg.

This commit is contained in:
Ulrich Drepper 2002-03-13 23:17:24 +00:00
parent e41c64d5ce
commit b018af2766

View File

@ -580,8 +580,10 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
else \
if (is_long_num) \
signed_number = args_value[fspec->data_arg].pa_long_int; \
else \
else if (!is_short) \
signed_number = args_value[fspec->data_arg].pa_int; \
else \
signed_number = args_value[fspec->data_arg].pa_short_int; \
\
is_negative = signed_number < 0; \
number.word = is_negative ? (- signed_number) : signed_number; \