diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-03-23 14:50:19 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-03-23 14:50:19 +0300 |
commit | 4b1318238b1b7544d1156e9525b85f654ba2dc2d (patch) | |
tree | 659373b72d9af6233c5772d9c02a41a4450ce1bb /indexer/categories_index.cpp | |
parent | 431299e98329b863b2518ed863c918bc0501256d (diff) |
review fixes
Diffstat (limited to 'indexer/categories_index.cpp')
-rw-r--r-- | indexer/categories_index.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/categories_index.cpp b/indexer/categories_index.cpp index af1513f314..c67b8416cc 100644 --- a/indexer/categories_index.cpp +++ b/indexer/categories_index.cpp @@ -52,7 +52,7 @@ namespace indexer { void CategoriesIndex::AddCategoryByTypeAndLang(uint32_t type, int8_t lang) { - ASSERT(lang >= 1 && lang <= static_cast<int8_t>(CategoriesHolder::kLocaleMapping.size()), + ASSERT(lang >= 1 && static_cast<size_t>(lang) <= CategoriesHolder::kLocaleMapping.size(), ("Invalid lang code:", lang)); m_catHolder->ForEachNameByType(type, [&](TCategory::Name const & name) { @@ -69,7 +69,7 @@ void CategoriesIndex::AddCategoryByTypeAllLangs(uint32_t type) void CategoriesIndex::AddAllCategoriesInLang(int8_t lang) { - ASSERT(lang >= 1 && lang <= static_cast<int8_t>(CategoriesHolder::kLocaleMapping.size()), + ASSERT(lang >= 1 && static_cast<size_t>(lang) <= CategoriesHolder::kLocaleMapping.size(), ("Invalid lang code:", lang)); m_catHolder->ForEachTypeAndCategory([&](uint32_t type, TCategory const & cat) { |