mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 10:25:41 +02:00
Fix signedness warnings
This commit is contained in:
@@ -115,7 +115,7 @@ void handle(std::string message, int z, unsigned x, unsigned y) {
|
|||||||
printf("{ \"type\": \"Feature\"");
|
printf("{ \"type\": \"Feature\"");
|
||||||
printf(", \"properties\": { ");
|
printf(", \"properties\": { ");
|
||||||
|
|
||||||
for (unsigned t = 0; t + 1 < feat.tags_size(); t += 2) {
|
for (int t = 0; t + 1 < feat.tags_size(); t += 2) {
|
||||||
if (t != 0) {
|
if (t != 0) {
|
||||||
printf(", ");
|
printf(", ");
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -331,7 +331,7 @@ static void decode_clipped(ClipperLib::PolyNode *t, drawvec &out) {
|
|||||||
// to do any outer-ring children of those children as a new top level.
|
// to do any outer-ring children of those children as a new top level.
|
||||||
|
|
||||||
ClipperLib::Path p = t->Contour;
|
ClipperLib::Path p = t->Contour;
|
||||||
for (int i = 0; i < p.size(); i++) {
|
for (unsigned i = 0; i < p.size(); i++) {
|
||||||
out.push_back(draw((i == 0) ? VT_MOVETO : VT_LINETO, p[i].X, p[i].Y));
|
out.push_back(draw((i == 0) ? VT_MOVETO : VT_LINETO, p[i].X, p[i].Y));
|
||||||
}
|
}
|
||||||
if (p.size() > 0) {
|
if (p.size() > 0) {
|
||||||
@@ -340,7 +340,7 @@ static void decode_clipped(ClipperLib::PolyNode *t, drawvec &out) {
|
|||||||
|
|
||||||
for (int n = 0; n < t->ChildCount(); n++) {
|
for (int n = 0; n < t->ChildCount(); n++) {
|
||||||
ClipperLib::Path p = t->Childs[n]->Contour;
|
ClipperLib::Path p = t->Childs[n]->Contour;
|
||||||
for (int i = 0; i < p.size(); i++) {
|
for (unsigned i = 0; i < p.size(); i++) {
|
||||||
out.push_back(draw((i == 0) ? VT_MOVETO : VT_LINETO, p[i].X, p[i].Y));
|
out.push_back(draw((i == 0) ? VT_MOVETO : VT_LINETO, p[i].X, p[i].Y));
|
||||||
}
|
}
|
||||||
if (p.size() > 0) {
|
if (p.size() > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user