From 6a6ef9c071f3f4bcc0b5d70c468c087224cb6b13 Mon Sep 17 00:00:00 2001 From: "dsites@google.com" Date: Tue, 10 Sep 2013 16:49:17 +0000 Subject: [PATCH] missed on signed/unsigned change git-svn-id: https://cld2.googlecode.com/svn/trunk@79 b252ecd4-b096-bf77-eb8e-91563289f87e --- internal/compact_lang_det_hint_code.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/compact_lang_det_hint_code.cc b/internal/compact_lang_det_hint_code.cc index 52657ae..32cb0c3 100644 --- a/internal/compact_lang_det_hint_code.cc +++ b/internal/compact_lang_det_hint_code.cc @@ -997,7 +997,7 @@ void TrimCLDLangPriors(int max_entries, CLDLangPriors* lps) { int CountCommas(const string& langtags) { int commas = 0; - for (int i = 0; i < langtags.size(); ++i) { + for (int i = 0; i < static_cast(langtags.size()); ++i) { if (langtags[i] == ',') {++commas;} } return commas; @@ -1055,7 +1055,7 @@ string TrimCLDLangTagsHint(const string& langtags) { char temp[20]; int pos = 0; - while (pos < langtags.size()) { + while (pos < static_cast(langtags.size())) { int comma = langtags.find(',', pos); if (comma == string::npos) {comma = langtags.size();} // fake trailing comma int len = comma - pos; @@ -1398,7 +1398,7 @@ void SetCLDLangTagsHint(const string& langtags, CLDLangPriors* langpriors) { char temp[20]; int pos = 0; - while (pos < langtags.size()) { + while (pos < static_cast(langtags.size())) { int comma = langtags.find(',', pos); if (comma == string::npos) {comma = langtags.size();} // fake trailing comma int len = comma - pos;