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:
authorvng <viktor.govako@gmail.com>2011-10-15 21:33:38 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:26:04 +0300
commit6f773f07b318c85c26b851c53abc19363cc06361 (patch)
tree76d018123c61290f06461fc5a5ca2cbf85290221 /indexer/feature_impl.hpp
parent70958c51868151180f208f5c9bd0af0ecd03b828 (diff)
Minor fix.
Diffstat (limited to 'indexer/feature_impl.hpp')
-rw-r--r--indexer/feature_impl.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indexer/feature_impl.hpp b/indexer/feature_impl.hpp
index 02fadc3ee8..dc40b3257f 100644
--- a/indexer/feature_impl.hpp
+++ b/indexer/feature_impl.hpp
@@ -14,9 +14,9 @@ namespace feature
str.reserve(strlen(prefix) + 1);
str = prefix;
- static char arrChar[] = { '0', '1', '2' };
- STATIC_ASSERT ( ARRAY_SIZE(arrChar) == ARRAY_SIZE(g_arrWorldScales) );
- STATIC_ASSERT ( ARRAY_SIZE(arrChar) == ARRAY_SIZE(g_arrCountryScales) );
+ char arrChar[] = { '0', '1', '2', '3' };
+ STATIC_ASSERT ( ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrWorldScales) );
+ STATIC_ASSERT ( ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrCountryScales) );
ASSERT ( ind >= 0 && ind < ARRAY_SIZE(arrChar), (ind) );
str += arrChar[ind];