From e59ac28b798587aeb075250ac3f97e5f41807089 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 19 May 2003 11:33:06 +0000 Subject: [PATCH] [project @ 2003-05-19 11:33:06 by simonmar] Eeek! intsToReverseBitmap was borked for bitmaps with more than wORD_SIZE_IN_BITS entries. --- ghc/compiler/codeGen/Bitmap.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/compiler/codeGen/Bitmap.hs b/ghc/compiler/codeGen/Bitmap.hs index ce0aa54..36915e0 100644 --- a/ghc/compiler/codeGen/Bitmap.hs +++ b/ghc/compiler/codeGen/Bitmap.hs @@ -59,7 +59,7 @@ intsToReverseBitmap size slots{- must be sorted -} | size <= 0 = [] | otherwise = (foldr xor init (map (1 `shiftL`) these)) : - intsToBitmap (size - wORD_SIZE_IN_BITS) + intsToReverseBitmap (size - wORD_SIZE_IN_BITS) (map (\x -> x - wORD_SIZE_IN_BITS) rest) where (these,rest) = span (