From ccbf4f0cf6d28033b7d3011ba61d396096309a77 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 12 Jul 1988 14:19:03 +0000 Subject: [PATCH] made to compile on Xenix --- mach/proto/ncg/subr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mach/proto/ncg/subr.c b/mach/proto/ncg/subr.c index fd558b4a6..ca15509aa 100644 --- a/mach/proto/ncg/subr.c +++ b/mach/proto/ncg/subr.c @@ -411,8 +411,12 @@ int aside_length = -1 ; save_stack(tp) register token_p tp ; { int i ; + token_p tmp = &fakestack[stackheight - 1]; - aside_length = &fakestack[stackheight-1] -tp; + /*aside_length = &fakestack[stackheight-1] -tp; + This did not compile on Xenix V3.2: CODE GENERATION ERROR! + */ + aside_length = tmp - tp; assert(aside_length<=MAXSAVE); #ifndef NDEBUG if (aside_length!=0 && Debug>1) -- 2.34.1