mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
More missing headers and compiler warnings
This commit is contained in:
@@ -337,7 +337,7 @@ drawvec clean_or_clip_poly(drawvec &geom, int z, int buffer, bool clip, bool try
|
||||
if (k != i) {
|
||||
fprintf(f, ",");
|
||||
}
|
||||
fprintf(f, "[%lld,%lld]", geom[k].x, geom[k].y);
|
||||
fprintf(f, "[%lld,%lld]", (long long) geom[k].x, (long long) geom[k].y);
|
||||
}
|
||||
|
||||
fprintf(f, "]");
|
||||
|
||||
+3
-2
@@ -2,6 +2,7 @@
|
||||
#include <algorithm>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
#include <cmath>
|
||||
#include "geometry.hpp"
|
||||
|
||||
struct point {
|
||||
@@ -192,11 +193,11 @@ drawvec clean_polygon(drawvec const &geom, int z, int detail) {
|
||||
}
|
||||
|
||||
for (size_t k = i; k + 1 < j; k++) {
|
||||
std::pair<point, point> segment = std::make_pair(
|
||||
std::pair<point, point> seg = std::make_pair(
|
||||
point(geom[k].x / scale, geom[k].y / scale),
|
||||
point(geom[k + 1].x / scale, geom[k + 1].y / scale));
|
||||
|
||||
segments.push_back(segment);
|
||||
segments.push_back(seg);
|
||||
}
|
||||
|
||||
i = j - 1;
|
||||
|
||||
Reference in New Issue
Block a user