Fix %z to always print values as signed like it is supposed to.

Reviewed by:	bde
Tested on:	i386 in ddb
This commit is contained in:
John Baldwin 2002-10-11 17:54:55 +00:00
parent 713f2f5c1d
commit 8559443093
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104924

View file

@ -664,8 +664,8 @@ reswitch: switch (ch = (u_char)*fmt++) {
goto handle_nosign;
case 'z':
base = 16;
if (sign)
goto handle_sign;
sign = 1;
goto handle_sign;
handle_nosign:
sign = 0;
if (jflag)