diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-12-04 14:53:32 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-12-05 19:04:15 +0200 |
commit | c2899f76b68ebaa2bba61e4407e128ab261ab212 (patch) | |
tree | 873acb061104f43b2c5e47bb42c209486b8be3a6 /src/mbgl/text/collision_feature.hpp | |
parent | 27536631d01d623bb4a08c3e85f2a62a6d187a12 (diff) | |
download | qtlocation-mapboxgl-c2899f76b68ebaa2bba61e4407e128ab261ab212.tar.gz |
[core] Don't use signed int type for anchor segmentupstream/alexshalamov_signed_to_unsigned_conversion
Diffstat (limited to 'src/mbgl/text/collision_feature.hpp')
-rw-r--r-- | src/mbgl/text/collision_feature.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mbgl/text/collision_feature.hpp b/src/mbgl/text/collision_feature.hpp index 8767a5b6f7..ebda4a5673 100644 --- a/src/mbgl/text/collision_feature.hpp +++ b/src/mbgl/text/collision_feature.hpp @@ -122,8 +122,12 @@ public: bool alongLine; private: - void bboxifyLabel(const GeometryCoordinates& line, GeometryCoordinate& anchorPoint, - const int segment, const float length, const float height, const float overscaling); + void bboxifyLabel(const GeometryCoordinates& line, + GeometryCoordinate& anchorPoint, + std::size_t segment, + const float length, + const float height, + const float overscaling); }; } // namespace mbgl |