mirror of https://github.com/CGAL/cgal
int -> size_t and static_cast
This commit is contained in:
parent
4d9f48a578
commit
e82a335325
|
|
@ -41,7 +41,7 @@ public:
|
||||||
typedef std::list<X_monotone_curve_2> Curve_container;
|
typedef std::list<X_monotone_curve_2> Curve_container;
|
||||||
typedef typename Curve_container::iterator Curve_iterator;
|
typedef typename Curve_container::iterator Curve_iterator;
|
||||||
typedef typename Curve_container::const_iterator Curve_const_iterator;
|
typedef typename Curve_container::const_iterator Curve_const_iterator;
|
||||||
typedef unsigned int Size;
|
typedef std::size_t Size;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Representation of a diagram vertex, which stores the point it represents
|
* Representation of a diagram vertex, which stores the point it represents
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ bool read_segments (const char *filename,
|
||||||
}
|
}
|
||||||
|
|
||||||
Segment_2 seg = Segment_2 (Point_2 (x1, y1), Point_2 (x2, y2));
|
Segment_2 seg = Segment_2 (Point_2 (x1, y1), Point_2 (x2, y2));
|
||||||
segs.push_back (Curve_2(seg, segs.size()));
|
segs.push_back (Curve_2(seg, static_cast<int>(segs.size())));
|
||||||
}
|
}
|
||||||
ifile.close();
|
ifile.close();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue