From ec491e5faac179b6e426611660bf0262e16f79fa Mon Sep 17 00:00:00 2001 From: panne Date: Sat, 8 Jul 2000 19:35:42 +0000 Subject: [PATCH] [project @ 2000-07-08 19:35:42 by panne] After the last fix in PprAbs.ppr_amode, we now need a cast from StgClosure* to P_ in UPD_FRAME_UPDATEE. I'm not sure if this is the nicest way to fix this, CgCon.cgReturnDataCon is another candidate. It looks a little bit like PrimRep distinguishes not enough between the different kind of pointers (there's no alternative for L_). --- ghc/includes/StgMacros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/includes/StgMacros.h b/ghc/includes/StgMacros.h index 1cd7559..1aef572 100644 --- a/ghc/includes/StgMacros.h +++ b/ghc/includes/StgMacros.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: StgMacros.h,v 1.26 2000/06/08 12:54:29 simonmar Exp $ + * $Id: StgMacros.h,v 1.27 2000/07/08 19:35:42 panne Exp $ * * (c) The GHC Team, 1998-1999 * @@ -452,7 +452,7 @@ EDI_(stg_gen_chk_info); # define UPD_BH_SINGLE_ENTRY(thunk) /* nothing */ #endif /* EAGER_BLACKHOLING */ -#define UPD_FRAME_UPDATEE(p) (((StgUpdateFrame *)(p))->updatee) +#define UPD_FRAME_UPDATEE(p) ((P_)(((StgUpdateFrame *)(p))->updatee)) #define UPDATE_SU_FROM_UPD_FRAME(p) (Su=((StgUpdateFrame *)(p))->link) /* ----------------------------------------------------------------------------- -- 1.7.10.4