about summary refs log tree commit diff
path: root/stdio-common/vfprintf.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-13 23:50:14 +0000
committerRoland McGrath <roland@gnu.org>1996-05-13 23:50:14 +0000
commit70c715189394f327651ccb2d96d19004ba3fb7e8 (patch)
tree01fe79818ed68b638c14f13998d75f8c5d7db037 /stdio-common/vfprintf.c
parentdfc34677ea6f283ee05d97711dc4982d4f5acef9 (diff)
downloadglibc-70c715189394f327651ccb2d96d19004ba3fb7e8.tar.gz
glibc-70c715189394f327651ccb2d96d19004ba3fb7e8.tar.xz
glibc-70c715189394f327651ccb2d96d19004ba3fb7e8.zip
Sun May 12 22:52:22 1996 Bruce Elliott <belliott@accessone.com>
	* 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.
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 193c392eb8..1643f370fd 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)							      \