Reviewers: Rico,

Message:
Tiny review.

Description:
Fix, again, assertion so that it also compiles on Mac.

Please review this at http://codereview.chromium.org/993004

Affected files:
  M src/heap-inl.h


Index: src/heap-inl.h
diff --git a/src/heap-inl.h b/src/heap-inl.h
index 5349be7ab6d9d753254e31442e8614fc40727727..f32f1e867e47a983a7d749a1cb7be85557c90805 100644
--- a/src/heap-inl.h
+++ b/src/heap-inl.h
@@ -133,8 +133,8 @@ Object* Heap::AllocateRawMap() {
 #ifdef DEBUG
   if (!result->IsFailure()) {
     // Maps have their own alignment.
-    CHECK_EQ(static_cast<intptr_t>(kHeapObjectTag),
-             reinterpret_cast<intptr_t>(result) & kMapAlignmentMask);
+    CHECK((reinterpret_cast<intptr_t>(result) & kMapAlignmentMask) ==
+          static_cast<intptr_t>(kHeapObjectTag));
   }
 #endif
   return result;


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to