diff --git a/src/heap-inl.h b/src/heap-inl.h index 5349be7ab6..f32f1e867e 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(kHeapObjectTag), - reinterpret_cast(result) & kMapAlignmentMask); + CHECK((reinterpret_cast(result) & kMapAlignmentMask) == + static_cast(kHeapObjectTag)); } #endif return result;