diff options
author | Yuri Gorshenin <y@maps.me> | 2017-04-19 13:51:25 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2017-04-19 15:08:21 +0300 |
commit | 6d3583c937b1878c8f796e659ef03d038cde17ab (patch) | |
tree | 79e92b416ac471e93ac7024c294419afba84822f /storage | |
parent | acd974ec22d3a49785412bfcc2b602277156b4c9 (diff) |
[build] Various fixes to master build.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/country.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/country.cpp b/storage/country.cpp index ab40dfba2b..b7a9a7a9d1 100644 --- a/storage/country.cpp +++ b/storage/country.cpp @@ -128,7 +128,7 @@ TMwmSubtreeAttrs LoadGroupSingleMwmsImpl(size_t depth, json_t * node, TCountryId for (auto const & affilationValue : affiliations) store.InsertAffiliation(id, affilationValue); - json_int_t nodeSize; + int nodeSize; FromJSONObjectOptionalField(node, "s", nodeSize); ASSERT_LESS_OR_EQUAL(0, nodeSize, ()); // We expect that mwm and routing files should be less than 2GB. @@ -243,7 +243,7 @@ TMwmSubtreeAttrs LoadGroupTwoComponentMwmsImpl(size_t depth, json_t * node, FromJSONObject(node, "n", file); // If file is empty, it's the same as the name. // We expect that mwm and routing files should be less than 2GB. - json_int_t mwmSize, routingSize; + int mwmSize, routingSize; FromJSONObjectOptionalField(node, "s", mwmSize); FromJSONObjectOptionalField(node, "rs", routingSize); ASSERT_LESS_OR_EQUAL(0, mwmSize, ()); @@ -300,13 +300,13 @@ int64_t LoadCountries(string const & jsonBuffer, TCountryTree & countries, countries.Clear(); affiliations.clear(); - json_int_t version = -1; + int64_t version = -1; try { my::Json root(jsonBuffer.c_str()); FromJSONObject(root.get(), "v", version); - if (version::IsSingleMwm(static_cast<int64_t>(version))) + if (version::IsSingleMwm(version)) { StoreCountriesSingleMwms store(countries, affiliations); if (!LoadCountriesSingleMwmsImpl(jsonBuffer, store)) @@ -336,12 +336,12 @@ void LoadCountryFile2CountryInfo(string const & jsonBuffer, map<string, CountryI { ASSERT(id2info.empty(), ()); - json_int_t version = -1; + int64_t version = -1; try { my::Json root(jsonBuffer.c_str()); FromJSONObjectOptionalField(root.get(), "v", version); - isSingleMwm = version::IsSingleMwm(static_cast<int64_t>(version)); + isSingleMwm = version::IsSingleMwm(version); if (isSingleMwm) { StoreFile2InfoSingleMwms store(id2info); |