Fixed the Curve_id to be of type size_t.

This commit is contained in:
Ron Wein 2006-08-02 07:32:48 +00:00
parent 1353f56b53
commit 001c8160ee
2 changed files with 5 additions and 3 deletions

View File

@ -294,9 +294,11 @@ public:
/*!
* Get a unique polynomial ID (based on the actual representation pointer).
*/
unsigned int id () const
size_t id () const
{
return (reinterpret_cast<unsigned int> (this->ptr()));
const void *p = reinterpret_cast<const void*> (this->ptr());
return (reinterpret_cast<size_t> (p));
}
/*!

View File

@ -54,7 +54,7 @@ public:
Nt_traits> Self;
// Type definition for the intersection-point mapping.
typedef unsigned int Curve_id;
typedef size_t Curve_id;
typedef std::pair<Curve_id, Curve_id> Curve_pair;
typedef std::pair<Point_2, unsigned int> Intersection_point_2;
typedef std::list<Intersection_point_2> Intersection_list;