[project @ 2001-09-17 22:46:59 by ken]
authorken <unknown>
Mon, 17 Sep 2001 22:46:59 +0000 (22:46 +0000)
committerken <unknown>
Mon, 17 Sep 2001 22:46:59 +0000 (22:46 +0000)
The size of a large bitmap is in number of (32- or 64-bit) words,
not 32-bit words. MERGE TO STABLE

ghc/includes/InfoMacros.h

index 7773763..0c1c593 100644 (file)
@@ -1,5 +1,5 @@
 /* ----------------------------------------------------------------------------
- * $Id: InfoMacros.h,v 1.16 2001/07/24 05:04:58 ken Exp $
+ * $Id: InfoMacros.h,v 1.17 2001/09/17 22:46:59 ken Exp $
  * 
  * (c) The GHC Team, 1998-1999
  *
@@ -618,7 +618,8 @@ typedef vec_info_8 StgPolyInfoTable;
   static const StgSRT lbl = {
 
 #define BITMAP(lbl,size,contents) \
-  static const StgLargeBitmap lbl = { size, { contents } };
+  static const StgLargeBitmap lbl = { \
+      (size*4+SIZEOF_VOID_P-1)/SIZEOF_VOID_P, { contents } };
 
 #if SIZEOF_VOID_P == 8
 #define BITMAP_SWITCH64(small, large)  small