Fixed build warnings on MSVC14 x64 in sweep context sources.
parent
387afcf74f
commit
2d563180ac
|
@ -96,7 +96,7 @@ void SweepContext::InitTriangulation()
|
||||||
|
|
||||||
void SweepContext::InitEdges(std::vector<Point*> polyline)
|
void SweepContext::InitEdges(std::vector<Point*> polyline)
|
||||||
{
|
{
|
||||||
int num_points = polyline.size();
|
int num_points = static_cast<int>(polyline.size());
|
||||||
for (int i = 0; i < num_points; i++) {
|
for (int i = 0; i < num_points; i++) {
|
||||||
int j = i < num_points - 1 ? i + 1 : 0;
|
int j = i < num_points - 1 ? i + 1 : 0;
|
||||||
edge_list.push_back(new Edge(*polyline[i], *polyline[j]));
|
edge_list.push_back(new Edge(*polyline[i], *polyline[j]));
|
||||||
|
|
|
@ -158,7 +158,7 @@ inline AdvancingFront* SweepContext::front()
|
||||||
|
|
||||||
inline int SweepContext::point_count()
|
inline int SweepContext::point_count()
|
||||||
{
|
{
|
||||||
return points_.size();
|
return static_cast<int>(points_.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void SweepContext::set_head(Point* p1)
|
inline void SweepContext::set_head(Point* p1)
|
||||||
|
|
Loading…
Reference in New Issue