Index: ui/base/resource/data_pack.cc |
diff --git a/ui/base/resource/data_pack.cc b/ui/base/resource/data_pack.cc |
index 934b14b29666ba64e6ca6e56157fe16fc78ddb13..ac5ff4fa021080b9ddc0fe2503374c5e243b241d 100644 |
--- a/ui/base/resource/data_pack.cc |
+++ b/ui/base/resource/data_pack.cc |
@@ -190,7 +190,8 @@ bool DataPack::GetStringPiece(uint16 resource_id, |
const DataPackEntry* next_entry = target + 1; |
size_t length = next_entry->file_offset - target->file_offset; |
- data->set(mmap_->data() + target->file_offset, length); |
+ data->set(reinterpret_cast<const char*>(mmap_->data() + target->file_offset), |
+ length); |
return true; |
} |