From 78edf8c95325edf57f5b87fd85f924ce1dfdb200 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 25 Apr 2000 14:57:39 +0000 Subject: [PATCH] [project @ 2000-04-25 14:57:39 by simonmar] Fix bug in rts_apply when profiling. This fixes Sven's foreign export dynamic/profiling bug. --- ghc/rts/RtsAPI.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/rts/RtsAPI.c b/ghc/rts/RtsAPI.c index 9690743..7ab8b44 100644 --- a/ghc/rts/RtsAPI.c +++ b/ghc/rts/RtsAPI.c @@ -1,5 +1,5 @@ /* ---------------------------------------------------------------------------- - * $Id: RtsAPI.c,v 1.15 2000/04/05 13:53:33 panne Exp $ + * $Id: RtsAPI.c,v 1.16 2000/04/25 14:57:39 simonmar Exp $ * * (c) The GHC Team, 1998-2000 * @@ -196,7 +196,7 @@ HaskellObj rts_apply (HaskellObj f, HaskellObj arg) { StgAP_UPD *ap = (StgAP_UPD *)allocate(AP_sizeW(1)); - ap->header.info = &AP_UPD_info; + SET_HDR(ap, &AP_UPD_info, CCS_SYSTEM); ap->n_args = 1; ap->fun = f; ap->payload[0] = (P_)arg; -- 1.7.10.4