diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-03-21 12:35:00 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-03-22 15:48:06 +0300 |
commit | 431299e98329b863b2518ed863c918bc0501256d (patch) | |
tree | c36c2e412182daa911c4ed17cf81c3b8b416129d /indexer/scale_index_builder.hpp | |
parent | 655b6f0a2833dc39a8c08199ecde85b5c739088b (diff) |
warnings fix
Diffstat (limited to 'indexer/scale_index_builder.hpp')
-rw-r--r-- | indexer/scale_index_builder.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/scale_index_builder.hpp b/indexer/scale_index_builder.hpp index d1a16a84b5..eb4fedce28 100644 --- a/indexer/scale_index_builder.hpp +++ b/indexer/scale_index_builder.hpp @@ -60,7 +60,7 @@ public: // This is not immediately obvious and in fact there was an idea to map // a bucket to a contiguous range of scales. // todo(@pimenov): We probably should remove scale_index.hpp altogether. - if (!FeatureShouldBeIndexed(ft, bucket, bucket == minScaleClassif /* needReset */)) + if (!FeatureShouldBeIndexed(ft, static_cast<int>(bucket), bucket == minScaleClassif /* needReset */)) { continue; } @@ -82,7 +82,7 @@ private: // -- it is allowed by the classificator. // If the feature is invisible at all scales, do not index it. template <class TFeature> - bool FeatureShouldBeIndexed(TFeature const & ft, uint32_t scale, bool needReset) const + bool FeatureShouldBeIndexed(TFeature const & ft, int scale, bool needReset) const { while (m_scalesIdx < m_header.GetScalesCount() && m_header.GetScale(m_scalesIdx) < scale) { |