Commit ee35227b authored by simonmar@microsoft.com's avatar simonmar@microsoft.com
Browse files

fix eran error message by reordering a couple of tests

parent 7593fccb
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment