mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-22 07:20:00 +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 New Issue
Block a user