Skip to content
Snippets Groups Projects
Commit eef55ea2 authored by sven.panne@aedion.de's avatar sven.panne@aedion.de
Browse files

[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).
parent 43659d11
No related merge requests found
/* -----------------------------------------------------------------------------
* $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));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment