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:
f1959c4
)
round_to_mblocks: should use StgWord not nat
author
Simon Marlow
<simonmar@microsoft.com>
Wed, 20 Feb 2008 13:01:39 +0000
(13:01 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Wed, 20 Feb 2008 13:01:39 +0000
(13:01 +0000)
includes/Block.h
patch
|
blob
|
history
diff --git
a/includes/Block.h
b/includes/Block.h
index
dd3e201
..
7721765
100644
(file)
--- a/
includes/Block.h
+++ b/
includes/Block.h
@@
-231,8
+231,8
@@
void freeChain_lock(bdescr *p);
#define WORDS_PER_MBLOCK (BLOCKS_PER_MBLOCK * BLOCK_SIZE_W)
-INLINE_HEADER nat
-round_to_mblocks(nat words)
+INLINE_HEADER StgWord
+round_to_mblocks(StgWord words)
{
if (words > WORDS_PER_MBLOCK) {
if ((words % WORDS_PER_MBLOCK) < (WORDS_PER_MBLOCK / 2)) {