summaryrefslogtreecommitdiff
path: root/include/mbgl/util/constants.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-28 10:23:48 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-28 12:00:53 +0300
commit1d46e83e3087f0d392c74c40d6b562359ed91576 (patch)
tree7cf4ec38fba5e605106a6792792f4d2db4473eec /include/mbgl/util/constants.hpp
parente1be2c45c1efdbb5d6e14e9431444292adaf3c9a (diff)
downloadqtlocation-mapboxgl-1d46e83e3087f0d392c74c40d6b562359ed91576.tar.gz
[core] Use the right types for zoom scale logic
32 bit integers should be enough for zoom scale logic. In shape annotation logic, 'maxAmountOfTileFeatures' requires 64 bits because we are multiplying the zoom scale with the extent, which might give a number higher than std::numeric_limits<uint32_t>::max().
Diffstat (limited to 'include/mbgl/util/constants.hpp')
-rw-r--r--include/mbgl/util/constants.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/util/constants.hpp b/include/mbgl/util/constants.hpp
index 607c388e95..3c0b3eb93e 100644
--- a/include/mbgl/util/constants.hpp
+++ b/include/mbgl/util/constants.hpp
@@ -18,7 +18,7 @@ constexpr float tileSize = 512;
* In practice, all features are converted to this extent before being added.
*
* Positions are stored as signed 16bit integers.
- * One bit is lost for signedness to support featuers extending past the left edge of the tile.
+ * One bit is lost for signedness to support features extending past the left edge of the tile.
* One bit is lost because the line vertex buffer packs 1 bit of other data into the int.
* One bit is lost to support features extending past the extent on the right edge of the tile.
* This leaves us with 2^13 = 8192