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:
authorSergey Yershov <syershov@maps.me>2017-01-11 17:47:48 +0300
committerSergey Yershov <syershov@maps.me>2017-01-12 13:57:04 +0300
commit1caaa1561e86f70784dace7d28610914c0058460 (patch)
treeba83705b45efd06309358fc06b5934cea1e2a98d /indexer/feature_altitude.hpp
parent341f7282abdc034901f864dacf8be68404206a69 (diff)
Fix warnings
Diffstat (limited to 'indexer/feature_altitude.hpp')
-rw-r--r--indexer/feature_altitude.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/feature_altitude.hpp b/indexer/feature_altitude.hpp
index 41f1f3a7da..580fa9bb12 100644
--- a/indexer/feature_altitude.hpp
+++ b/indexer/feature_altitude.hpp
@@ -111,7 +111,7 @@ public:
for (size_t i = 0; i < pointCount; ++i)
{
- uint32_t const biasedDelta = coding::DeltaCoder::Decode(bits);
+ uint64_t const biasedDelta = coding::DeltaCoder::Decode(bits);
if (biasedDelta == 0)
{
LOG(LERROR, ("Decoded altitude delta is zero. File", countryFileName,
@@ -119,7 +119,7 @@ public:
m_altitudes.clear();
return false;
}
- uint32_t const delta = biasedDelta - 1;
+ uint64_t const delta = biasedDelta - 1;
m_altitudes[i] = static_cast<TAltitude>(bits::ZigZagDecode(delta) + prevAltitude);
if (m_altitudes[i] < minAltitude)