Index: src/base/platform/platform.h |
diff --git a/src/base/platform/platform.h b/src/base/platform/platform.h |
index aa30519506d691b8df57969aec2a8bddfe981831..2d08ecbd7f6979ebfd31888ea4c7c3f9acebf8f1 100644 |
--- a/src/base/platform/platform.h |
+++ b/src/base/platform/platform.h |
@@ -363,10 +363,10 @@ class VirtualMemory { |
private: |
bool InVM(void* address, size_t size) { |
- return (reinterpret_cast<intptr_t>(address_) <= |
- reinterpret_cast<intptr_t>(address)) && |
- (reinterpret_cast<intptr_t>(address_) + size_ >= |
- reinterpret_cast<intptr_t>(address) + size); |
+ return (reinterpret_cast<uintptr_t>(address_) <= |
+ reinterpret_cast<uintptr_t>(address)) && |
+ ((reinterpret_cast<uintptr_t>(address_) + size_) >= |
+ (reinterpret_cast<uintptr_t>(address) + size)); |
} |
void* address_; // Start address of the virtual memory. |