diff options
author | vng <viktor.govako@gmail.com> | 2015-04-27 17:51:39 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:46:27 +0300 |
commit | 6704c8e070ead2ab459b05c2c3b214eafc34b3a8 (patch) | |
tree | 8cc521a6b9debbae81cdd764f805760027922553 /search | |
parent | b3c84850c0d8e5e70fafcd30a0c023dd5b1fd886 (diff) |
[search] Fixed bug from previous commit here.
Diffstat (limited to 'search')
-rw-r--r-- | search/feature_offset_match.hpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/search/feature_offset_match.hpp b/search/feature_offset_match.hpp index 4b8c128a74..69748356b1 100644 --- a/search/feature_offset_match.hpp +++ b/search/feature_offset_match.hpp @@ -162,13 +162,10 @@ void PrefixMatchInTrie(TrieIterator const & trieRoot, unique_ptr<search::TrieIterator> const pIter(trieQueue.back()); trieQueue.pop_back(); - ASSERT_LESS(pIter->m_edge.size(), std::numeric_limits<uint32_t>::max(), ()); - uint32_t const edgeCount = static_cast<uint32_t>(pIter->m_edge.size()); - - for (uint32_t i = 0; i < edgeCount; ++i) + for (size_t i = 0; i < pIter->m_value.size(); ++i) f(pIter->m_value[i]); - for (uint32_t i = 0; i < edgeCount; ++i) + for (size_t i = 0; i < pIter->m_edge.size(); ++i) trieQueue.push_back(pIter->GoToEdge(i)); } } |