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:
Diffstat (limited to 'indexer/classificator.cpp')
-rw-r--r--indexer/classificator.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indexer/classificator.cpp b/indexer/classificator.cpp
index 23a95adea3..a75932a86a 100644
--- a/indexer/classificator.cpp
+++ b/indexer/classificator.cpp
@@ -137,8 +137,8 @@ Classificator & classif()
namespace ftype
{
- uint8_t const bits_count = 6;
- uint8_t const levels_count = 5;
+ uint8_t const bits_count = 7;
+ uint8_t const levels_count = 4;
uint8_t const max_value = (1 << bits_count) - 1;
void set_value(uint32_t & type, uint8_t level, uint8_t value)
@@ -196,8 +196,6 @@ namespace ftype
bool GetValue(uint32_t type, uint8_t level, uint8_t & value)
{
- ASSERT ( level < levels_count, ("invalid input level", level) );
-
if (level < get_control_level(type))
{
value = get_value(type, level);