diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-03-13 23:27:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-03-13 23:27:20 +0000 |
commit | 75bfdfc7df6d3557358fe7f1c01e748ef6b5efc7 (patch) | |
tree | 23e021859a45a505834a176c20d2d6fede2cd3fe /stdio-common/vfprintf.c | |
parent | bf494c7d6b9e45aa5f7bd7667423a3b13dba0da6 (diff) | |
download | glibc-75bfdfc7df6d3557358fe7f1c01e748ef6b5efc7.tar.gz glibc-75bfdfc7df6d3557358fe7f1c01e748ef6b5efc7.tar.xz glibc-75bfdfc7df6d3557358fe7f1c01e748ef6b5efc7.zip |
Update.
2002-03-13 Wolfram Gloger <wg@malloc.de> * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap failed. 2002-03-02 Andreas Schwab <schwab@suse.de> * stdio-common/vfprintf.c (process_arg): Fix decimal format with 'h' flag and positional arg. * stdio-common/tst-printf.c (rfg3): New function to test positional arguments. (main): Fix some warnings. 2002-03-13 Jakub Jelinek <jakub@redhat.com> * elf/dl-minimal.c (_itoa): Use _itoa_lower_digits_internal if SHARED. * elf/dl-reloc.c (_dl_reloc_bad_type): Likewise.
Diffstat (limited to 'stdio-common/vfprintf.c')
-rw-r--r-- | stdio-common/vfprintf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c index c7c3e83efc..a4773468e7 100644 --- a/stdio-common/vfprintf.c +++ b/stdio-common/vfprintf.c @@ -581,8 +581,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; \ |