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:
17c8229
)
Replace an (incorrect) bytes-to-words calculation with ROUNDUP_BYTES_TO_WDS
author
Ian Lynagh
<igloo@earth.li>
Sat, 19 Jun 2010 23:43:10 +0000
(23:43 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 19 Jun 2010 23:43:10 +0000
(23:43 +0000)
rts/Adjustor.c
patch
|
blob
|
history
diff --git
a/rts/Adjustor.c
b/rts/Adjustor.c
index
dcae59b
..
dd974e2
100644
(file)
--- a/
rts/Adjustor.c
+++ b/
rts/Adjustor.c
@@
-220,7
+220,7
@@
stgAllocStable(size_t size_in_bytes, StgStablePtr *stable)
nat data_size_in_words, total_size_in_words;
/* round up to a whole number of words */
- data_size_in_words = (size_in_bytes + sizeof(W_) + 1) / sizeof(W_);
+ data_size_in_words = ROUNDUP_BYTES_TO_WDS(size_in_bytes);
total_size_in_words = sizeofW(StgArrWords) + data_size_in_words;
/* allocate and fill it in */