From a22a63dd13c07352e0aaff72ee116aff0ebbe404 Mon Sep 17 00:00:00 2001 From: Nicolas Lauzon Date: Wed, 24 Jul 2024 08:23:40 -0400 Subject: [PATCH] Silence compile error with clang --- pointmatcher/PointCloudGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pointmatcher/PointCloudGenerator.cpp b/pointmatcher/PointCloudGenerator.cpp index d084dd2b..75ff550c 100644 --- a/pointmatcher/PointCloudGenerator.cpp +++ b/pointmatcher/PointCloudGenerator.cpp @@ -170,7 +170,7 @@ typename PointMatcher::DataPoints PointMatcher::PointCloudGenerator::gener { // Sample random values of theta and phi. const ScalarType phi{ 2.0f * pi * uniformDistribution(randomNumberGenerator) }; - const ScalarType radiusSample{ radius * sqrt(uniformDistribution(randomNumberGenerator)) }; + const ScalarType radiusSample{ static_cast(radius * sqrt(uniformDistribution(randomNumberGenerator))) }; // Pre-compute values, such as sine and cosine of phi and theta. const ScalarType sinPhi{ std::sin(phi) };