From 5cc57129f941a8197e58f865cd93491c3a72a078 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 21 Oct 2002 12:42:31 +0000 Subject: [PATCH] [project @ 2002-10-21 12:42:31 by simonmar] Turn an instance of 0xfff00000 into ~MBLOCK_MASK in the Win32 code. --- ghc/rts/MBlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/rts/MBlock.c b/ghc/rts/MBlock.c index a59ba9d..9f0e89b 100644 --- a/ghc/rts/MBlock.c +++ b/ghc/rts/MBlock.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: MBlock.c,v 1.30 2002/10/21 11:38:53 simonmar Exp $ + * $Id: MBlock.c,v 1.31 2002/10/21 12:42:31 simonmar Exp $ * * (c) The GHC Team 1998-1999 * @@ -258,7 +258,7 @@ getMBlocks(nat n) } else { end_non_committed = (char*)base_non_committed + (unsigned long)size_reserved_pool; /* The returned pointer is not aligned on a mega-block boundary. Make it. */ - base_mblocks = (char*)((unsigned long)base_non_committed & (unsigned long)0xfff00000) + MBLOCK_SIZE; + base_mblocks = (char*)((unsigned long)base_non_committed & (unsigned long)~MBLOCK_MASK) + MBLOCK_SIZE; # if 0 fprintf(stderr, "getMBlocks: Dropping %d bytes off of 256M chunk\n", (unsigned)base_mblocks - (unsigned)base_non_committed); -- 1.7.10.4