libc: fix incorrect cast of field width to char
This commit is contained in:
parent
ddf7a79707
commit
47bfbec647
@ -166,7 +166,7 @@ size_t xvasprintf(int (*callback)(void *, char), void * userData, const char * f
|
||||
alt = 1;
|
||||
++f;
|
||||
} else if (*f == '*') {
|
||||
arg_width = (char)va_arg(args, int);
|
||||
arg_width = (int)va_arg(args, int);
|
||||
++f;
|
||||
} else if (*f == '0') {
|
||||
fill_zero = 1;
|
||||
|
@ -143,7 +143,7 @@ size_t xvasprintf(int (*callback)(void *, char), void * userData, const char * f
|
||||
alt = 1;
|
||||
++f;
|
||||
} else if (*f == '*') {
|
||||
arg_width = (char)va_arg(args, int);
|
||||
arg_width = (int)va_arg(args, int);
|
||||
++f;
|
||||
} else if (*f == '0') {
|
||||
fill_zero = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user