fix warnings

This commit is contained in:
wyy 2014-11-30 01:13:25 +08:00
parent a63fe809b1
commit e84d57426d

View File

@ -112,7 +112,8 @@ namespace CppJieba
const TrieNode * now = _root;
//typename TrieNode::NextMap::const_iterator iter;
const TrieNode* node;
for (size_t i = 0; i < end - begin; i++)
// compiler will complain warnings if only "i < end - begin" .
for (size_t i = 0; i < size_t(end - begin); i++)
{
Unicode::value_type ch = *(begin + i);
res[i].uniCh = ch;