Index: src/base/platform/platform-qnx.cc |
diff --git a/src/base/platform/platform-qnx.cc b/src/base/platform/platform-qnx.cc |
index 6f2f9897236c8c0ace91dfecc584d508976656b6..2cb3228400c5a5853e94300390e533359e1d0065 100644 |
--- a/src/base/platform/platform-qnx.cc |
+++ b/src/base/platform/platform-qnx.cc |
@@ -249,7 +249,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(), |