summaryrefslogtreecommitdiff
path: root/src/mbgl/text/collision_feature.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-12-04 14:53:32 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-12-05 19:04:15 +0200
commitc2899f76b68ebaa2bba61e4407e128ab261ab212 (patch)
tree873acb061104f43b2c5e47bb42c209486b8be3a6 /src/mbgl/text/collision_feature.hpp
parent27536631d01d623bb4a08c3e85f2a62a6d187a12 (diff)
downloadqtlocation-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.hpp8
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