summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorsof <unknown>2003-02-18 05:47:53 +0000
committersof <unknown>2003-02-18 05:47:53 +0000
commita05f9df12c19c928ba886a825ca49c54100df4c4 (patch)
treef7e8591ed66d5cae040062ae2d7e097343df03c2 /ghc
parent9508bce26ec071c7414336c36f23f03f936ee2d8 (diff)
downloadhaskell-a05f9df12c19c928ba886a825ca49c54100df4c4.tar.gz
[project @ 2003-02-18 05:47:53 by sof]
make use of MBLOCK_ROUND_DOWN()
Diffstat (limited to 'ghc')
-rw-r--r--ghc/rts/BlockAlloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ghc/rts/BlockAlloc.c b/ghc/rts/BlockAlloc.c
index 4be0d88d76..8e09d0cc5c 100644
--- a/ghc/rts/BlockAlloc.c
+++ b/ghc/rts/BlockAlloc.c
@@ -1,5 +1,5 @@
/* -----------------------------------------------------------------------------
- * $Id: BlockAlloc.c,v 1.15 2003/01/28 17:04:58 simonmar Exp $
+ * $Id: BlockAlloc.c,v 1.16 2003/02/18 05:47:53 sof Exp $
*
* (c) The GHC Team 1998-2000
*
@@ -265,7 +265,7 @@ freeMegaGroup(bdescr *p)
n = p->blocks * BLOCK_SIZE / MBLOCK_SIZE + 1;
for (; n > 0; (W_)p += MBLOCK_SIZE, n--) {
- initMBlock((void *)((W_)p & ~MBLOCK_MASK));
+ initMBlock(MBLOCK_ROUND_DOWN(p));
initGroup(BLOCKS_PER_MBLOCK, p);
freeGroup(p);
}