X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FAdjustor.c;h=dd974e20906edf73a3ecfe8d58440a97ebf8b9bf;hp=dcae59b41bab248228644b0fcef80c0b255dd688;hb=ae75dfb80ccffcdb8d96d53508731214f7cb7305;hpb=17c8229adf9f268097e4c87053d940a918c3a26f diff --git a/rts/Adjustor.c b/rts/Adjustor.c index dcae59b..dd974e2 100644 --- 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 */