projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b15e663
)
[project @ 2003-05-19 11:33:06 by simonmar]
author
simonmar
<unknown>
Mon, 19 May 2003 11:33:06 +0000
(11:33 +0000)
committer
simonmar
<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
patch
|
blob
|
history
diff --git
a/ghc/compiler/codeGen/Bitmap.hs
b/ghc/compiler/codeGen/Bitmap.hs
index
ce0aa54
..
36915e0
100644
(file)
--- 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 (<wORD_SIZE_IN_BITS) slots
init