made to compile on Xenix
authorceriel <none@none>
Tue, 12 Jul 1988 14:19:03 +0000 (14:19 +0000)
committerceriel <none@none>
Tue, 12 Jul 1988 14:19:03 +0000 (14:19 +0000)
mach/proto/ncg/subr.c

index fd558b4..ca15509 100644 (file)
@@ -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)