Skip to content

Commit

Permalink
fix cast precision warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Sep 28, 2016
1 parent 8d353b4 commit 888acfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mapbox/earcut.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ typename Earcut<N>::Node*
Earcut<N>::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<int>(points.size());
int i, j;
Point p1, p2;
Node* last = nullptr;
Expand Down

0 comments on commit 888acfc

Please sign in to comment.