[project @ 2003-05-19 11:33:06 by simonmar]
authorsimonmar <unknown>
Mon, 19 May 2003 11:33:06 +0000 (11:33 +0000)
committersimonmar <unknown>
Mon, 19 May 2003 11:33:06 +0000 (11:33 +0000)
Eeek!  intsToReverseBitmap was borked for bitmaps with more than
wORD_SIZE_IN_BITS entries.

ghc/compiler/codeGen/Bitmap.hs

index ce0aa54..36915e0 100644 (file)
@@ -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 (<wORD_SIZE_IN_BITS) slots
         init