summaryrefslogtreecommitdiff
path: root/src/dxfdata.cc
diff options
context:
space:
mode:
authorAndrew Plumb <andrew@plumb.org>2012-02-13 16:23:18 (GMT)
committerAndrew Plumb <andrew@plumb.org>2012-02-13 16:23:18 (GMT)
commitd4efb54284f0781aee40cb660712fa15256676df (patch)
tree11f0f6ab56cd78fa604f206aba19c18748d6236d /src/dxfdata.cc
parentb633845e55c1733ecd9fa4a01606fd7bdafacc48 (diff)
Cleaned up unsigned int compiler warnings
Diffstat (limited to 'src/dxfdata.cc')
-rw-r--r--src/dxfdata.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dxfdata.cc b/src/dxfdata.cc
index 52493ac..65996d9 100644
--- a/src/dxfdata.cc
+++ b/src/dxfdata.cc
@@ -526,9 +526,9 @@ void DxfData::fixup_path_direction()
}
}
// rotate points if the path is in non-standard rotation
- int b = min_x_point;
- int a = b == 0 ? this->paths[i].indices.size() - 2 : b - 1;
- int c = b == this->paths[i].indices.size() - 1 ? 1 : b + 1;
+ unsigned int b = min_x_point;
+ unsigned int a = b == 0 ? this->paths[i].indices.size() - 2 : b - 1;
+ unsigned int c = b == this->paths[i].indices.size() - 1 ? 1 : b + 1;
double ax = this->points[this->paths[i].indices[a]][0] - this->points[this->paths[i].indices[b]][0];
double ay = this->points[this->paths[i].indices[a]][1] - this->points[this->paths[i].indices[b]][1];
double cx = this->points[this->paths[i].indices[c]][0] - this->points[this->paths[i].indices[b]][0];
contact: Jan Huwald // Impressum