Need double cast

This commit is contained in:
Guillaume Damiand 2018-06-13 10:47:44 +02:00
parent f6fd8cae4c
commit bc4eca82b3
3 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,7 @@ struct DefaultColorFunctorPolyhedron
if (fh==boost::graph_traits<Polyhedron>::null_face()) // use to get the mono color
return CGAL::Color(100, 125, 200); // R G B between 0-255
CGAL::Random random((unsigned int)&(*fh));
CGAL::Random random((unsigned int)(std::size_t)(&(*fh)));
return get_random_color(random);
}
};

View File

@ -38,7 +38,7 @@ struct DefaultColorFunctorT2
static CGAL::Color run(const T2&,
const typename T2::Finite_faces_iterator fh)
{
CGAL::Random random((unsigned int)(&*fh));
CGAL::Random random((unsigned int)(std::size_t)(&*fh));
return get_random_color(random);
}
};

View File

@ -41,7 +41,8 @@ struct DefaultColorFunctorT3
if (fh==NULL) // use to get the mono color
return CGAL::Color(100, 125, 200); // R G B between 0-255
CGAL::Random random((unsigned int)(&*((*fh)->first))+(unsigned int)((*fh)->second));
CGAL::Random random((unsigned int)((std::size_t)(&*((*fh)->first))+
(std::size_t)((*fh)->second)));
return get_random_color(random);
}
};