From: sof Date: Thu, 16 Sep 1999 08:37:08 +0000 (+0000) Subject: [project @ 1999-09-16 08:37:08 by sof] X-Git-Tag: Approximately_9120_patches~5803 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=5c633f42b55cb4d7851e6c6e80532acc232e8f42;p=ghc-hetmet.git [project @ 1999-09-16 08:37:08 by sof] Magic Constant Removal --- diff --git a/ghc/rts/MBlock.c b/ghc/rts/MBlock.c index e8fd646..2626304 100644 --- a/ghc/rts/MBlock.c +++ b/ghc/rts/MBlock.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: MBlock.c,v 1.11 1999/03/11 11:21:47 simonm Exp $ + * $Id: MBlock.c,v 1.12 1999/09/16 08:37:08 sof Exp $ * * (c) The GHC Team 1998-1999 * @@ -178,7 +178,7 @@ getMBlocks(nat n) ret=(void*)-1; } else { /* The returned pointer is not aligned on a mega-block boundary. Make it. */ - base_mblocks = (char*)((unsigned)base_non_committed & (unsigned)0xfff00000) + 0x100000; + base_mblocks = (char*)((unsigned long)base_non_committed & (unsigned long)0xfff00000) + MBLOCK_SIZE; # if 0 fprintf(stderr, "Dropping %d bytes off of 128M chunk\n", (unsigned)base_mblocks - (unsigned)base_non_committed);