diff options
author | vng <viktor.govako@gmail.com> | 2012-02-16 19:40:13 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:34:10 +0300 |
commit | c6909b54509d797a61529ef88fe1d58baad88ac5 (patch) | |
tree | c6ca45af1fb8c02de2da8fb7d7ddec2df3a58496 /indexer/feature_visibility.cpp | |
parent | 93e05a56b196f4f801d636b33a02a02c4294e462 (diff) |
Fix bug with std::find usage.
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r-- | indexer/feature_visibility.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp index 2938c68e48..d75681444d 100644 --- a/indexer/feature_visibility.cpp +++ b/indexer/feature_visibility.cpp @@ -396,7 +396,8 @@ bool UsePopulationRank(uint32_t type) bool IsMyType(uint32_t t) const { - return find(m_types, m_types + ARRAY_SIZE(m_types), t); + uint32_t const * e = m_types + ARRAY_SIZE(m_types); + return (find(m_types, e, t) != e); } }; |