diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2015-07-27 19:47:36 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:57:50 +0300 |
commit | d869a0b28c04b52a176e1620183375981536cd8b (patch) | |
tree | a8a76add1e8c58a62a408f089b54a7f63ba00412 /geometry | |
parent | 1ba4b9e9196ef22dc28edc1e9dddcf3bdbbf7ce5 (diff) |
Review fixes
Diffstat (limited to 'geometry')
-rw-r--r-- | geometry/cellid.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/geometry/cellid.hpp b/geometry/cellid.hpp index e46d4fa816..c7a010c040 100644 --- a/geometry/cellid.hpp +++ b/geometry/cellid.hpp @@ -14,6 +14,7 @@ template <int kDepthLevels = 31> class CellId public: // TODO: Move CellId::DEPTH_LEVELS to private. static int const DEPTH_LEVELS = kDepthLevels; + static uint8_t const MAX_CHILDREN = 4; static uint32_t const MAX_COORD = 1U << DEPTH_LEVELS; CellId() : m_Bits(0), m_Level(0) @@ -38,7 +39,7 @@ public: inline static size_t TotalCellsOnLevel(size_t level) { - return 1 << 2 * level; + return 1 << (2 * level); } ////////////////////////////////////////////////////////////////////////////////////////////////// |