Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortatiana-kondakova <tatiana.kondakova@gmail.com>2018-01-29 13:02:24 +0300
committermpimenov <mpimenov@users.noreply.github.com>2018-02-01 18:13:38 +0300
commite2db212ab16e5af127981d778834548a7dbe56b8 (patch)
tree8a4d43017f93a393505ceaac077df7ffb43bfe61 /indexer/interval_index.hpp
parent78d0770c040289e6a0e96792c8a933418d7ebbad (diff)
Add LocalityIndexBuilder
Diffstat (limited to 'indexer/interval_index.hpp')
-rw-r--r--indexer/interval_index.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indexer/interval_index.hpp b/indexer/interval_index.hpp
index 147740a85e..477f5fe34c 100644
--- a/indexer/interval_index.hpp
+++ b/indexer/interval_index.hpp
@@ -32,7 +32,7 @@ public:
enum { kVersion = 1 };
};
-template <class ReaderT>
+template <class ReaderT, typename Value>
class IntervalIndex : public IntervalIndexBase
{
typedef IntervalIndexBase base_t;
@@ -83,7 +83,7 @@ private:
ArrayByteSource src(&data[0]);
void const * pEnd = &data[0] + size;
- uint32_t value = 0;
+ Value value = 0;
while (src.Ptr() < pEnd)
{
uint32_t key = 0;
@@ -91,7 +91,7 @@ private:
key = SwapIfBigEndian(key);
if (key > end)
break;
- value += ReadVarInt<int32_t>(src);
+ value += ReadVarInt<int64_t>(src);
if (key >= beg)
f(value);
}