Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed argument reading warning in __format

  • Loading branch information...
commit 101242491e46974b2d5a2bfb52984385a5014f66 1 parent 97d954f
@nickbjohnson4224 authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.