mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 05:36:10 +00:00
Fix "%hhi" conversion for kvprintf()
The signedness of "char" is implementation-dependent. Reviewed by: imp,zlei,nightquick@proton.me Pull Request: https://github.com/freebsd/freebsd-src/pull/1290
This commit is contained in:
parent
2eb64df7f5
commit
fc3e5334ab
|
@ -904,7 +904,7 @@ reswitch: switch (ch = (u_char)*fmt++) {
|
|||
else if (hflag)
|
||||
num = (short)va_arg(ap, int);
|
||||
else if (cflag)
|
||||
num = (char)va_arg(ap, int);
|
||||
num = (signed char)va_arg(ap, int);
|
||||
else
|
||||
num = va_arg(ap, int);
|
||||
number:
|
||||
|
|
Loading…
Reference in a new issue