Index: src/base/platform/platform-openbsd.cc |
diff --git a/src/base/platform/platform-openbsd.cc b/src/base/platform/platform-openbsd.cc |
index a3f39e2dd7824806b75f4583843fc79da7466c23..4e706cb7c14cffc5b83e24ab38a250633db5725f 100644 |
--- a/src/base/platform/platform-openbsd.cc |
+++ b/src/base/platform/platform-openbsd.cc |
@@ -213,7 +213,7 @@ VirtualMemory::VirtualMemory(size_t size) |
VirtualMemory::VirtualMemory(size_t size, size_t alignment) |
: address_(NULL), size_(0) { |
- DCHECK(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment()))); |
+ DCHECK((alignment % OS::AllocateAlignment()) == 0); |
size_t request_size = RoundUp(size + alignment, |
static_cast<intptr_t>(OS::AllocateAlignment())); |
void* reservation = mmap(OS::GetRandomMmapAddr(), |