Fixed a minor problem with off_fmt, when this format would not
produce the '-' sign.
This commit is contained in:
parent
493efb1bf7
commit
9877db53d9
1 changed files with 5 additions and 1 deletions
|
@ -535,8 +535,12 @@ char *strarg(t) {
|
||||||
strarg(offtyp);
|
strarg(offtyp);
|
||||||
for (p = argstr; *p; p++)
|
for (p = argstr; *p; p++)
|
||||||
;
|
;
|
||||||
if (argval >= 0)
|
if ((full) argval >= 0)
|
||||||
*p++ = '+';
|
*p++ = '+';
|
||||||
|
else {
|
||||||
|
*p++ = '-';
|
||||||
|
argval = - (full) argval;
|
||||||
|
}
|
||||||
sprintf(p,off_fmt,(full)argval);
|
sprintf(p,off_fmt,(full)argval);
|
||||||
break;
|
break;
|
||||||
case sp_cend:
|
case sp_cend:
|
||||||
|
|
Loading…
Reference in a new issue