Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Unified Diff: net/base/mime_sniffer.cc

Issue 3089004: Mac: Some clang appeasing. (Closed)
Patch Set: '' Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/cookie_monster.cc ('k') | net/http/http_auth_gssapi_posix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « net/base/cookie_monster.cc ('k') | net/http/http_auth_gssapi_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698