Index: src/base/platform/platform-cygwin.cc |
diff --git a/src/base/platform/platform-cygwin.cc b/src/base/platform/platform-cygwin.cc |
index d93439bf144960b82a89a436845ee1ea7ba14bc2..8a767cf2964214a1b9f96cd29f2cc08960eed16e 100644 |
--- a/src/base/platform/platform-cygwin.cc |
+++ b/src/base/platform/platform-cygwin.cc |
@@ -205,7 +205,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* address = ReserveRegion(request_size); |