mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-11 09:50:12 +00:00
Print signed single-byte decimal integers correctly instead of implicitly
converting them to unsigned bytes. PR: 36783
This commit is contained in:
parent
a43171c248
commit
cf45dcc8e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96790
@ -154,7 +154,7 @@ print(pr, bp)
|
||||
case F_INT:
|
||||
switch(pr->bcnt) {
|
||||
case 1:
|
||||
(void)printf(pr->fmt, (quad_t)*bp);
|
||||
(void)printf(pr->fmt, (quad_t)(signed char)*bp);
|
||||
break;
|
||||
case 2:
|
||||
bcopy(bp, &s2, sizeof(s2));
|
||||
|
Loading…
Reference in New Issue
Block a user