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 <yershov@corp.mail.ru>2015-04-23 14:04:40 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:46:21 +0300
commit9587ed74865154bbe7c7350ada3de61d6cd73c4c (patch)
tree96a709191a67884835f6553c3f48866233a28d71 /storage/country.cpp
parent98c8773487a1a5410c10c3e56e0cfbc586094aca (diff)
Fix build warnings for Storage
Diffstat (limited to 'storage/country.cpp')
-rw-r--r--storage/country.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/country.cpp b/storage/country.cpp
index 4dd8067bb0..822756df06 100644
--- a/storage/country.cpp
+++ b/storage/country.cpp
@@ -116,8 +116,9 @@ void LoadGroupImpl(int depth, json_t * group, ToDo & toDo)
char const * flag = json_string_value(json_object_get(j, "c"));
toDo(name, file, flag ? flag : "",
- json_integer_value(json_object_get(j, "s")),
- json_integer_value(json_object_get(j, "rs")),
+ // We expect what mwm and routing files should be less 2Gb
+ static_cast<uint32_t>(json_integer_value(json_object_get(j, "s"))),
+ static_cast<uint32_t>(json_integer_value(json_object_get(j, "rs"))),
depth);
json_t * children = json_object_get(j, "g");