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

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: Replace 0 with 0u for size_t. 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..c913fe090e95593901e663b248e8a516a44e0b50 100644
--- a/components/cdm/renderer/widevine_key_systems.cc
+++ b/components/cdm/renderer/widevine_key_systems.cc
@@ -23,9 +23,9 @@ namespace cdm {
// Return |name|'s parent key system.
static std::string GetDirectParentName(std::string name) {
- int last_period = name.find_last_of('.');
- DCHECK_GT(last_period, 0);
- return name.substr(0, last_period);
+ size_t last_period = name.find_last_of('.');
+ DCHECK_GT(last_period, 0u);
+ return name.substr(0u, last_period);
}
void AddWidevineWithCodecs(WidevineCdmType widevine_cdm_type,
« 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