mirror of https://github.com/CGAL/cgal
Fix warning: std::pow(float, int) returns double instead of float in recent C++
This commit is contained in:
parent
989819ed01
commit
91de37ec3a
|
|
@ -437,7 +437,7 @@ edge_aware_upsample_point_set(
|
|||
//
|
||||
FT cos_sigma = static_cast<FT>(std::cos(FT(CGAL::to_double(sharpness_angle))
|
||||
/ FT(180) * FT(CGAL_PI)));
|
||||
FT sharpness_bandwidth = std::pow((CGAL::max)((FT)1e-8, (FT)1.0 - cos_sigma), 2);
|
||||
FT sharpness_bandwidth = static_cast<FT>(std::pow((CGAL::max)((FT)1e-8, (FT)1.0 - cos_sigma), 2));
|
||||
|
||||
FT sum_density = 0.0;
|
||||
unsigned int count_density = 1;
|
||||
|
|
|
|||
|
|
@ -1030,7 +1030,7 @@ namespace CGAL {
|
|||
}
|
||||
|
||||
inline FT stop_probability(std::size_t largest_candidate, std::size_t num_pts, std::size_t num_candidates, std::size_t octree_depth) const {
|
||||
return (std::min<FT>)(std::pow(FT(1) - FT(largest_candidate)
|
||||
return (std::min<FT>)((FT)std::pow(FT(1) - FT(largest_candidate)
|
||||
/ (FT(num_pts) * FT(octree_depth+1)
|
||||
* FT(1 << (m_required_samples - 1))),
|
||||
int(num_candidates)), FT(1));
|
||||
|
|
|
|||
Loading…
Reference in New Issue