a couple more symbols need package names
[ghc-hetmet.git] / rts / MBlock.c
index 6d05940..76645e2 100644 (file)
@@ -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;