Commit a05f9df1 authored by sof's avatar sof
Browse files

[project @ 2003-02-18 05:47:53 by sof]

make use of MBLOCK_ROUND_DOWN()
parent 9508bce2
/* -----------------------------------------------------------------------------
* $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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment