Fixed a minor problem with off_fmt, when it did not produce
a '-' sign when neccesary
This commit is contained in:
parent
9877db53d9
commit
324cbd8327
1 changed files with 5 additions and 1 deletions
|
@ -527,8 +527,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