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

Unified Diff: components/cdm/renderer/widevine_key_systems.cc

Issue 280063002: Fix the compile error for win64: widevine_key_systems.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cdm/renderer/widevine_key_systems.cc
diff --git a/components/cdm/renderer/widevine_key_systems.cc b/components/cdm/renderer/widevine_key_systems.cc
index d42ec7d680c7cd268e6a37cfd0655a85f1cc176c..0b37a7143c416d296b89d8e04cce5c8efc874142 100644
--- a/components/cdm/renderer/widevine_key_systems.cc
+++ b/components/cdm/renderer/widevine_key_systems.cc
@@ -23,7 +23,7 @@ namespace cdm {
// Return |name|'s parent key system.
static std::string GetDirectParentName(std::string name) {
- int last_period = name.find_last_of('.');
+ size_t last_period = name.find_last_of('.');
DCHECK_GT(last_period, 0);
xhwang 2014/05/09 23:59:22 s/0/0u?
ycheo (away) 2014/05/10 00:03:45 Hmm. actually, size_t is unsigned. Isn't it better
return name.substr(0, last_period);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698