From f2b6758bd738b3cd1a0bb90429940bab4232f075 Mon Sep 17 00:00:00 2001 From: "dsites@google.com" Date: Tue, 10 Sep 2013 16:55:45 +0000 Subject: [PATCH] remove a few more sign/unsigned errors git-svn-id: https://cld2.googlecode.com/svn/trunk@81 b252ecd4-b096-bf77-eb8e-91563289f87e --- internal/compact_lang_det_impl.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/compact_lang_det_impl.cc b/internal/compact_lang_det_impl.cc index 1e079c1..35f382c 100644 --- a/internal/compact_lang_det_impl.cc +++ b/internal/compact_lang_det_impl.cc @@ -704,9 +704,9 @@ int CheapSqueezeInplace(char* isrc, } if (FLAGS_cld_showme) { // Mark the deletion point with black square U+25A0 - *dst++ = 0xe2; - *dst++ = 0x96; - *dst++ = 0xa0; + *dst++ = static_cast(0xe2); + *dst++ = static_cast(0x96); + *dst++ = static_cast(0xa0); *dst++ = ' '; } skipping = true; @@ -1006,7 +1006,7 @@ void MoveLang1ToLang2(Language lang1, Language lang2, int k = 0; uint16 prior_lang = UNKNOWN_LANGUAGE; - for (int i = 0; i < resultchunkvector->size(); ++i) { + for (int i = 0; i < static_cast(resultchunkvector->size()); ++i) { ResultChunk* rc = &(*resultchunkvector)[i]; if (rc->lang1 == lang1) { // Update entry[i] lang1 => lang2