From: ceriel Date: Wed, 14 Jan 1987 17:47:31 +0000 (+0000) Subject: Fixed a minor problem with off_fmt, when this format would not X-Git-Tag: release-5-5~4999 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=9877db53d9ebd78f6b1b82fade7fc7feacd5eff6;p=ack.git Fixed a minor problem with off_fmt, when this format would not produce the '-' sign. --- diff --git a/mach/proto/ncg/fillem.c b/mach/proto/ncg/fillem.c index b671d8962..83d6f05da 100644 --- a/mach/proto/ncg/fillem.c +++ b/mach/proto/ncg/fillem.c @@ -535,8 +535,12 @@ char *strarg(t) { strarg(offtyp); for (p = argstr; *p; p++) ; - if (argval >= 0) + if ((full) argval >= 0) *p++ = '+'; + else { + *p++ = '-'; + argval = - (full) argval; + } sprintf(p,off_fmt,(full)argval); break; case sp_cend: