From: ceriel Date: Wed, 14 Jan 1987 17:49:19 +0000 (+0000) Subject: Fixed a minor problem with off_fmt, when it did not produce X-Git-Tag: release-5-5~4998 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=324cbd83278c1f8e2872ae173ef4552e35330e27;p=ack.git Fixed a minor problem with off_fmt, when it did not produce a '-' sign when neccesary --- diff --git a/mach/proto/cg/fillem.c b/mach/proto/cg/fillem.c index f3ee53c74..83001e71e 100644 --- a/mach/proto/cg/fillem.c +++ b/mach/proto/cg/fillem.c @@ -527,8 +527,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: