diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-09-12 15:46:05 -0700 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-09-20 09:05:45 -0700 |
commit | 2d84e2a1aea2581bc674620090ca8dbd971ee7af (patch) | |
tree | c6bbc3de0c3f109a1be4805a209c6d525c244713 /src/mbgl | |
parent | 2fcbd78062552a7fd4471bc0896b79f9888b91e8 (diff) | |
download | qtlocation-mapboxgl-2d84e2a1aea2581bc674620090ca8dbd971ee7af.tar.gz |
Fix platform dependent number type `unsigned long` -> `uint64_t`
Diffstat (limited to 'src/mbgl')
-rw-r--r-- | src/mbgl/util/tile_cover.cpp | 4 | ||||
-rw-r--r-- | src/mbgl/util/tile_cover.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/util/tile_cover.cpp b/src/mbgl/util/tile_cover.cpp index c06634c9b2..a5a1b1d70c 100644 --- a/src/mbgl/util/tile_cover.cpp +++ b/src/mbgl/util/tile_cover.cpp @@ -170,9 +170,9 @@ std::vector<UnwrappedTileID> tileCover(const TransformState& state, int32_t z) { } // Taken from https://github.com/mapbox/sphericalmercator#xyzbbox-zoom-tms_style-srs -// Computes the projected tiles for the lower left and uppoer right points of the bounds +// Computes the projected tiles for the lower left and upper right points of the bounds // and uses that to compute the tile cover count -unsigned long tileCount(const LatLngBounds& bounds, uint8_t zoom, uint16_t tileSize_){ +uint64_t tileCount(const LatLngBounds& bounds, uint8_t zoom, uint16_t tileSize_){ auto sw = Projection::project(bounds.southwest().wrapped(), zoom, tileSize_); auto ne = Projection::project(bounds.northeast().wrapped(), zoom, tileSize_); diff --git a/src/mbgl/util/tile_cover.hpp b/src/mbgl/util/tile_cover.hpp index 405e6a48e6..3c7a4ee44a 100644 --- a/src/mbgl/util/tile_cover.hpp +++ b/src/mbgl/util/tile_cover.hpp @@ -19,7 +19,7 @@ std::vector<UnwrappedTileID> tileCover(const TransformState&, int32_t z); std::vector<UnwrappedTileID> tileCover(const LatLngBounds&, int32_t z); // Compute only the count of tiles needed for tileCover -unsigned long tileCount(const LatLngBounds&, uint8_t z, uint16_t tileSize); +uint64_t tileCount(const LatLngBounds&, uint8_t z, uint16_t tileSize); } // namespace util } // namespace mbgl |