Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
5a7e6864
Commit
5a7e6864
authored
Jul 14, 2007
by
Ian Lynagh
Browse files
Fix for print022 (round up when dividing type size by word size)
From Pepe Iborra (mnislaih)
parent
d9dc5b44
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/ghci/RtClosureInspect.hs
View file @
5a7e6864
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment