From dddff135cf6b8ddd55c30d4b6371bec0bc6f0dcc Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Wed, 4 Feb 2015 10:51:54 -0800 Subject: [PATCH] Fix signedness in DCHECKs. Change-Id: I7d11c7b7380021c07fd9849c298ce0329b7bf6dd --- packager/app/stream_descriptor.cc | 2 +- packager/mpd/base/language_utils.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packager/app/stream_descriptor.cc b/packager/app/stream_descriptor.cc index ef7bc0cfaf..d447e50d6b 100644 --- a/packager/app/stream_descriptor.cc +++ b/packager/app/stream_descriptor.cc @@ -106,7 +106,7 @@ bool InsertStreamDescriptor(const std::string& descriptor_string, LOG(ERROR) << "Unknown/invalid language specified: " << iter->second; return false; } - DCHECK_EQ(3, language.size()); + DCHECK_EQ(3u, language.size()); descriptor.language = language; break; } diff --git a/packager/mpd/base/language_utils.cc b/packager/mpd/base/language_utils.cc index eeec25cd75..8c3fefd10b 100644 --- a/packager/mpd/base/language_utils.cc +++ b/packager/mpd/base/language_utils.cc @@ -89,7 +89,7 @@ std::string LanguageToShortestForm(const std::string& language) { // This could happen legitimately for languages which have no 2-letter code, // but that would imply that the input language code is a 3-letter code. - DCHECK_EQ(3, language.size()); + DCHECK_EQ(3u, language.size()); return language; }