Index: net/base/mime_sniffer.cc |
diff --git a/net/base/mime_sniffer.cc b/net/base/mime_sniffer.cc |
index 1961107288adbd8b2ec2dbeed49a939f9f2bfa60..4ad4e1d47a57381cda07848c7279f3368a6f0772 100644 |
--- a/net/base/mime_sniffer.cc |
+++ b/net/base/mime_sniffer.cc |
@@ -228,7 +228,8 @@ static bool MatchMagicNumber(const char* content, size_t size, |
// pretend the length is content_size. |
const char* end = |
static_cast<const char*>(memchr(content, '\0', size)); |
- const size_t content_strlen = (end != NULL) ? (end - content) : size; |
+ const size_t content_strlen = |
+ (end != NULL) ? static_cast<size_t>(end - content) : size; |
bool match = false; |
if (magic_entry->is_string) { |