diff options
author | Marius Kintel <marius@kintel.net> | 2012-02-14 23:13:07 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-02-14 23:13:07 (GMT) |
commit | 8a5f6a4abde265bf7d9316d5aa5437b4eca24866 (patch) | |
tree | 81af82ba0fe3ab56b4c8ab707d38a64844944a51 /src/PolySetCGALEvaluator.cc | |
parent | a2109992e16246b4d72b316416b9e4bf0d75a288 (diff) |
Minor unsigned fixes
Diffstat (limited to 'src/PolySetCGALEvaluator.cc')
-rw-r--r-- | src/PolySetCGALEvaluator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PolySetCGALEvaluator.cc b/src/PolySetCGALEvaluator.cc index 7afb359..81ae31e 100644 --- a/src/PolySetCGALEvaluator.cc +++ b/src/PolySetCGALEvaluator.cc @@ -108,7 +108,7 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const ProjectionNode &node) // in the XY plane, causing the resulting 2D polygon to be self-intersection // and cause a crash in CGALEvaluator::PolyReducer. The right solution is to // filter these polygons here. kintel 20120203. - Grid2d<int> conversion_grid(GRID_COARSE); + Grid2d<unsigned int> conversion_grid(GRID_COARSE); for (size_t i = 0; i < ps3->polygons.size(); i++) { for (size_t j = 0; j < ps3->polygons[i].size(); j++) { double x = ps3->polygons[i][j][0]; @@ -116,7 +116,7 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const ProjectionNode &node) double z = ps3->polygons[i][j][2]; if (z != 0) goto next_ps3_polygon_cut_mode; - if ((unsigned) conversion_grid.align(x, y) == i+1) + if (conversion_grid.align(x, y) == i+1) goto next_ps3_polygon_cut_mode; conversion_grid.data(x, y) = i+1; } |