mirror of https://github.com/CGAL/cgal
Constrcut double to avoid VC++ warning C5055
This commit is contained in:
parent
65d84e4c03
commit
24c9ef34b7
|
|
@ -863,7 +863,7 @@ int
|
||||||
Triangulation_hierarchy_3<Tr>::
|
Triangulation_hierarchy_3<Tr>::
|
||||||
random_level()
|
random_level()
|
||||||
{
|
{
|
||||||
boost::geometric_distribution<> proba(1.0/ratio);
|
boost::geometric_distribution<> proba(1.0/double(ratio));
|
||||||
boost::variate_generator<boost::rand48&, boost::geometric_distribution<> > die(random, proba);
|
boost::variate_generator<boost::rand48&, boost::geometric_distribution<> > die(random, proba);
|
||||||
|
|
||||||
return (std::min)(die(), (int)maxlevel)-1;
|
return (std::min)(die(), (int)maxlevel)-1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue