From ac1262cc45339b62b3c35041a69d111d98d5d9a3 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 17 Sep 1991 09:46:12 +0000 Subject: [PATCH] MAXPROCARG could be 0 --- mach/proto/ncg/codegen.c | 2 +- mach/proto/ncg/proto.make | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mach/proto/ncg/codegen.c b/mach/proto/ncg/codegen.c index 124021ee..c9db6864 100644 --- a/mach/proto/ncg/codegen.c +++ b/mach/proto/ncg/codegen.c @@ -57,7 +57,7 @@ unsigned codegen(codep,ply,toplevel,costlimit,forced) byte *codep; unsigned cost #endif unsigned totalcost = 0; int inscoerc=0; - int procarg[MAXPROCARG]; + int procarg[MAXPROCARG+1]; #ifdef ALLOW_NEXTEM static int paniced; char *savebp = 0; diff --git a/mach/proto/ncg/proto.make b/mach/proto/ncg/proto.make index 47087a08..b26f8a96 100644 --- a/mach/proto/ncg/proto.make +++ b/mach/proto/ncg/proto.make @@ -78,7 +78,7 @@ var.$(SUF): $(CDIR)/var.c $(CC) -c $(CFLAGS) $(CDIR)/var.c install: all - mkdir $(TARGET_HOME)/lib.bin/$(MACH) + -mkdir $(TARGET_HOME)/lib.bin/$(MACH) cp cg $(TARGET_HOME)/lib.bin/$(MACH)/cg cmp: all