mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 22:50:07 +00:00
(process_arg): Fix decimal format with 'h' flag and positional arg.
This commit is contained in:
parent
e41c64d5ce
commit
b018af2766
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user