mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +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) {
|
if (k != i) {
|
||||||
fprintf(f, ",");
|
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, "]");
|
fprintf(f, "]");
|
||||||
|
|||||||
+3
-2
@@ -2,6 +2,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <cmath>
|
||||||
#include "geometry.hpp"
|
#include "geometry.hpp"
|
||||||
|
|
||||||
struct point {
|
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++) {
|
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].x / scale, geom[k].y / scale),
|
||||||
point(geom[k + 1].x / scale, geom[k + 1].y / scale));
|
point(geom[k + 1].x / scale, geom[k + 1].y / scale));
|
||||||
|
|
||||||
segments.push_back(segment);
|
segments.push_back(seg);
|
||||||
}
|
}
|
||||||
|
|
||||||
i = j - 1;
|
i = j - 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user