Sun May 12 22:52:22 1996 Bruce Elliott <belliott@accessone.com>
authorRoland McGrath <roland@gnu.org>
Mon, 13 May 1996 23:50:14 +0000 (23:50 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 13 May 1996 23:50:14 +0000 (23:50 +0000)
* stdio-common/vfprintf.c: Correct handling of unsigned short
values.

* extra-lib.mk (alltype-$(lib)): Put libs in $(objpfx) instead of
$(common-objpfx).
* Makerules [install-lib.a]: Find them there.

ChangeLog
stdio-common/vfprintf.c

index 40f5eb4..ad48409 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
+Sun May 12 22:52:22 1996  Bruce Elliott  <belliott@accessone.com>
+
+       * stdio-common/vfprintf.c: Correct handling of unsigned short
+       values.
+
 Mon May 13 12:03:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
 
+       * extra-lib.mk (alltype-$(lib)): Put libs in $(objpfx) instead of
+       $(common-objpfx).
+       * Makerules [install-lib.a]: Find them there.
+
        * sysdeps/unix/sysv/linux/i386/profil-counter.h: New file.
 
        * extra-lib.mk: Skip the hair if $(object-suffixes-$(lib)) is empty.
index 193c392..1643f37 100644 (file)
@@ -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)                                                       \