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:
7593fcc
)
fix eran error message by reordering a couple of tests
author
simonmar@microsoft.com
<unknown>
Wed, 19 Jul 2006 11:16:38 +0000
(11:16 +0000)
committer
simonmar@microsoft.com
<unknown>
Wed, 19 Jul 2006 11:16:38 +0000
(11:16 +0000)
rts/MBlock.c
patch
|
blob
|
history
diff --git
a/rts/MBlock.c
b/rts/MBlock.c
index
6d05940
..
76645e2
100644
(file)
--- a/
rts/MBlock.c
+++ b/
rts/MBlock.c
@@
-395,14
+395,14
@@
getMBlocks(nat n)
}
}
- if (((W_)ret & MBLOCK_MASK) != 0) {
- barf("getMBlocks: misaligned block returned");
- }
-
if (ret == (void*)-1) {
barf("getMBlocks: unknown memory allocation failure on Win32.");
}
+ if (((W_)ret & MBLOCK_MASK) != 0) {
+ barf("getMBlocks: misaligned block returned");
+ }
+
debugTrace(DEBUG_gc, "allocated %d megablock(s) at 0x%x",n,(nat)ret);
next_request = (char*)next_request + size;