projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9dc5b4
)
Fix for print022 (round up when dividing type size by word size)
author
Ian Lynagh
<igloo@earth.li>
Sat, 14 Jul 2007 22:39:40 +0000
(22:39 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 14 Jul 2007 22:39:40 +0000
(22:39 +0000)
From Pepe Iborra (mnislaih)
compiler/ghci/RtClosureInspect.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/RtClosureInspect.hs
b/compiler/ghci/RtClosureInspect.hs
index
3ffc8c2
..
1e69a89
100644
(file)
--- a/
compiler/ghci/RtClosureInspect.hs
+++ b/
compiler/ghci/RtClosureInspect.hs
@@
-235,7
+235,7
@@
extractUnboxed tt clos = go tt (nonPtrs clos)
| otherwise = pprPanic "Expected a TcTyCon" (ppr t)
go [] _ = []
go (t:tt) xx
- | (x, rest) <- splitAt (sizeofType t `div` wORD_SIZE) xx
+ | (x, rest) <- splitAt ((sizeofType t + wORD_SIZE - 1) `div` wORD_SIZE) xx
= x : go tt rest
sizeofTyCon = sizeofPrimRep . tyConPrimRep