Fixed a minor problem with off_fmt, when this format would not
authorceriel <none@none>
Wed, 14 Jan 1987 17:47:31 +0000 (17:47 +0000)
committerceriel <none@none>
Wed, 14 Jan 1987 17:47:31 +0000 (17:47 +0000)
produce the '-' sign.

mach/proto/ncg/fillem.c

index b671d89..83d6f05 100644 (file)
@@ -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: