Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 6d46740b2ef7b9955261c42978f31dcd215ad3af..28f5ce0e56ed4e3584d41c54a239f843e60065a3 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -2437,7 +2437,7 @@ Object* Heap::CreateCode(const CodeDesc& desc, |
// Compute size |
int body_size = RoundUp(desc.instr_size, kObjectAlignment); |
int obj_size = Code::SizeFor(body_size); |
- ASSERT(IsAligned(obj_size, Code::kCodeAlignment)); |
+ ASSERT(IsAligned(static_cast<intptr_t>(obj_size), kCodeAlignment)); |
Object* result; |
if (obj_size > MaxObjectSizeInPagedSpace()) { |
result = lo_space_->AllocateRawCode(obj_size); |