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

Unified Diff: url/url_canon_fileurl.cc

Issue 662713004: Type conversion fixes, url/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 2 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 | « url/url_canon.h ('k') | url/url_canon_pathurl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/url_canon_fileurl.cc
diff --git a/url/url_canon_fileurl.cc b/url/url_canon_fileurl.cc
index 1322be74e407be3b0e2de3c97bc30b318f8ece2f..6191f8f9b2ca13d66e0193112a81f94520563c52 100644
--- a/url/url_canon_fileurl.cc
+++ b/url/url_canon_fileurl.cc
@@ -40,7 +40,7 @@ int FileDoDriveSpec(const CHAR* spec, int begin, int end,
// Normalize Windows drive letters to uppercase
if (spec[after_slashes] >= 'a' && spec[after_slashes] <= 'z')
- output->push_back(spec[after_slashes] - 'a' + 'A');
+ output->push_back(static_cast<char>(spec[after_slashes] - 'a' + 'A'));
else
output->push_back(static_cast<char>(spec[after_slashes]));
« no previous file with comments | « url/url_canon.h ('k') | url/url_canon_pathurl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698