Fix compilation error.

This commit is contained in:
vng 2011-12-13 11:14:33 +03:00 committed by Alex Zolotarev
parent 827edbfb4e
commit a43ef7fe5a

View file

@ -36,7 +36,7 @@ uint32_t LangKeywordsScorer::Score(int8_t lang,
if (m_languagePriorities[i][j] == lang)
return i * KeywordMatcher::MAX_SCORE * (MAX_LANGS_IN_TIER + 1)
+ keywordScore * (MAX_LANGS_IN_TIER + 1)
+ min(j, MAX_LANGS_IN_TIER);
+ min(j, static_cast<uint32_t>(MAX_LANGS_IN_TIER));
return NUM_LANG_PRIORITY_TIERS * KeywordMatcher::MAX_SCORE * (MAX_LANGS_IN_TIER + 1)
+ keywordScore * (MAX_LANGS_IN_TIER + 1);
}