Skip to content

Commit

Permalink
Merge pull request #580 from norlab-ulaval/silence-compile-error-clang
Browse files Browse the repository at this point in the history
Fix compile error with clang
  • Loading branch information
boxanm authored Jul 25, 2024
2 parents 2322bba + 0b63e7f commit f621555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pointmatcher/PointCloudGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ typename PointMatcher<T>::DataPoints PointMatcher<T>::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<ScalarType>(radius * sqrt(uniformDistribution(randomNumberGenerator))) };

// Pre-compute values, such as sine and cosine of phi and theta.
const ScalarType sinPhi{ std::sin(phi) };
Expand Down

0 comments on commit f621555

Please sign in to comment.