summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/mapped_file_posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/mapped_file_posix.cc')
-rw-r--r--net/disk_cache/mapped_file_posix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/disk_cache/mapped_file_posix.cc b/net/disk_cache/mapped_file_posix.cc
index b9d8435..a28a7d4 100644
--- a/net/disk_cache/mapped_file_posix.cc
+++ b/net/disk_cache/mapped_file_posix.cc
@@ -23,8 +23,8 @@ void* MappedFile::Init(const std::wstring& name, size_t size) {
buffer_ = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED,
platform_file(), 0);
init_ = true;
- DCHECK(reinterpret_cast<int>(buffer_) != -1);
- if (reinterpret_cast<int>(buffer_) == -1)
+ DCHECK(reinterpret_cast<intptr_t>(buffer_) != -1);
+ if (reinterpret_cast<intptr_t>(buffer_) == -1)
buffer_ = 0;
view_size_ = size;