From b8ab18bbb3f6b65d3d6f0c9a3747bce9d0773b98 Mon Sep 17 00:00:00 2001
From: Wolfgang Merkt <w.merkt@gmail.com>
Date: Wed, 26 Jun 2024 16:37:09 +0100
Subject: [PATCH] Fix float conversion

---
 include/hpp/fcl/math/transform.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/hpp/fcl/math/transform.h b/include/hpp/fcl/math/transform.h
index 34d3fcda..9a1d31e5 100644
--- a/include/hpp/fcl/math/transform.h
+++ b/include/hpp/fcl/math/transform.h
@@ -234,7 +234,7 @@ inline Quatf uniformRandomQuaternion() {
   const FCL_REAL mult1 = std::sqrt(FCL_REAL(1.0) - u1);
   const FCL_REAL mult2 = std::sqrt(u1);
 
-  static const FCL_REAL PI_value = EIGEN_PI;
+  static const FCL_REAL PI_value = static_cast<FCL_REAL>(EIGEN_PI);
   FCL_REAL s2 = std::sin(2 * PI_value * u2);
   FCL_REAL c2 = std::cos(2 * PI_value * u2);
   FCL_REAL s3 = std::sin(2 * PI_value * u3);
-- 
GitLab