int -> size_t and static_cast

This commit is contained in:
Andreas Fabri 2010-06-25 15:05:05 +00:00
parent 4d9f48a578
commit e82a335325
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public:
typedef std::list<X_monotone_curve_2> Curve_container;
typedef typename Curve_container::iterator Curve_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

View File

@ -92,7 +92,7 @@ bool read_segments (const char *filename,
}
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();