Fix signedness in DCHECKs.
Change-Id: I7d11c7b7380021c07fd9849c298ce0329b7bf6dd
This commit is contained in:
parent
3cc86c62b5
commit
dddff135cf
|
@ -106,7 +106,7 @@ bool InsertStreamDescriptor(const std::string& descriptor_string,
|
||||||
LOG(ERROR) << "Unknown/invalid language specified: " << iter->second;
|
LOG(ERROR) << "Unknown/invalid language specified: " << iter->second;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
DCHECK_EQ(3, language.size());
|
DCHECK_EQ(3u, language.size());
|
||||||
descriptor.language = language;
|
descriptor.language = language;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ std::string LanguageToShortestForm(const std::string& language) {
|
||||||
|
|
||||||
// This could happen legitimately for languages which have no 2-letter code,
|
// 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.
|
// 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;
|
return language;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue