Warning in type mismath fix.

This commit is contained in:
vng 2012-08-24 14:03:40 +03:00 committed by Alex Zolotarev
parent 64470aa5b8
commit da23af5960
2 changed files with 2 additions and 2 deletions

View file

@ -1185,7 +1185,7 @@ bool Query::SearchLocality(MwmValue * pMwm, impl::Locality & res)
{
TrieIterator::Edge::EdgeStrT const & edge = pTrieRoot->m_edge[i].m_str;
int8_t const lang = static_cast<int8_t>(edge[0]);
if (lang < search::CATEGORIES_LANG && params.IsLangExist(lang))
if (edge[0] < search::CATEGORIES_LANG && params.IsLangExist(lang))
{
scoped_ptr<TrieIterator> pLangRoot(pTrieRoot->GoToEdge(i));

View file

@ -125,7 +125,7 @@ private:
void EraseTokens(vector<size_t> const & eraseInds);
bool IsEmpty() const { return (m_tokens.empty() && m_prefixTokens.empty()); }
bool IsLangExist(uint8_t l) const { return (m_langs.count(l) > 0); }
bool IsLangExist(int8_t l) const { return (m_langs.count(l) > 0); }
private:
void AddSynonims(Query const & q, bool isLocalities);