From: panne Date: Fri, 16 Jul 1999 09:53:44 +0000 (+0000) Subject: [project @ 1999-07-16 09:53:44 by panne] X-Git-Tag: Approximately_9120_patches~5970 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=eef55ea200eaeb84cd2a3be3e503fd4436f29d96;p=ghc-hetmet.git [project @ 1999-07-16 09:53:44 by panne] More 64bit fun: Fixed an ill-placed #ifdef and added a cast to a numeric literal (for explanation see yesterday's fix). --- diff --git a/ghc/rts/Stable.c b/ghc/rts/Stable.c index 4244bca..d0dbc59 100644 --- a/ghc/rts/Stable.c +++ b/ghc/rts/Stable.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Stable.c,v 1.4 1999/03/08 16:41:24 sof Exp $ + * $Id: Stable.c,v 1.5 1999/07/16 09:53:44 panne Exp $ * * (c) The GHC Team, 1998-1999 * @@ -199,7 +199,7 @@ getStablePtr(StgPtr p) weight = stable_ptr_table[sn].weight; if (weight == 0) { - weight = 1 << (BITS_IN(StgWord)-1); + weight = (StgWord)1 << (BITS_IN(StgWord)-1); stable_ptr_table[sn].weight = weight; return (StgStablePtr)(sn + ((BITS_IN(StgWord)-1) << STABLEPTR_WEIGHT_SHIFT)); }