Skip to content
Browse files

fixed argument reading warning in __format

  • Loading branch information...
1 parent 97d954f commit 101242491e46974b2d5a2bfb52984385a5014f66 @nickbjohnson4224 committed Feb 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libc/stdio/__format.c
View
2 libc/stdio/__format.c
@@ -399,7 +399,7 @@ char *__format(const char **_fmt, va_list *argp) {
/* read value */
switch (type) {
case TYPE_STRING: val_s = va_arg(*argp, const char *); break;
- case TYPE_CHAR: val_c = va_arg(*argp, char); break;
+ case TYPE_CHAR: val_c = va_arg(*argp, int); break;
case TYPE_LITERAL: val_c = '%'; break;
case TYPE_INT: val_i = va_arg(*argp, int); break;
case TYPE_UINT: val_u = va_arg(*argp, unsigned int); break;

0 comments on commit 1012424

Please sign in to comment.
Something went wrong with that request. Please try again.