diff --git a/include/mapbox/earcut.hpp b/include/mapbox/earcut.hpp index 39ade22..2f7eb9c 100644 --- a/include/mapbox/earcut.hpp +++ b/include/mapbox/earcut.hpp @@ -184,7 +184,7 @@ typename Earcut::Node* Earcut::linkedList(const Ring& points, const bool clockwise) { using Point = typename Ring::value_type; double sum = 0; - const int len = points.size(); + const int len = static_cast(points.size()); int i, j; Point p1, p2; Node* last = nullptr;